Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix icons and country flag #131

Merged
7 commits merged into from
Aug 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android {
applicationId = "de.dertyp7214.rboardthememanager"
minSdk = 23
targetSdk = 33
versionCode = 356000
versionName = "3.5.6"
versionCode = 359000
versionName = "3.5.9"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -67,10 +67,12 @@ dependencies {
implementation(project(":colorutilsc"))
implementation(project(":mathc"))

implementation(platform("com.google.firebase:firebase-bom:30.3.1"))
implementation("com.google.firebase:firebase-messaging-ktx:23.0.6")
implementation(platform("com.google.firebase:firebase-bom:30.3.2"))
implementation("com.google.firebase:firebase-messaging-ktx:23.0.7")
implementation("com.google.firebase:firebase-analytics-ktx:21.1.0")

implementation("com.google.protobuf:protobuf-kotlin:3.21.5")

implementation("androidx.legacy:legacy-support-v4:1.0.0")
implementation("androidx.navigation:navigation-fragment-ktx:2.5.1")
implementation("androidx.navigation:navigation-ui-ktx:2.5.1")
Expand All @@ -80,22 +82,22 @@ dependencies {
implementation("com.github.topjohnwu.libsu:io:$libsuVersion")
implementation("com.github.topjohnwu.libsu:nio:$libsuVersion")
implementation("dev.chrisbanes.insetter:insetter:0.6.1")
implementation("androidx.core:core-ktx:1.9.0-alpha05")
implementation("androidx.core:core-ktx:1.9.0-beta01")
//noinspection DifferentStdlibGradleVersion
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.20-Beta")
implementation("androidx.core:core:1.9.0-alpha05")
implementation("com.google.android.material:material:1.7.0-alpha03")
implementation("androidx.core:core:1.9.0-beta01")
implementation("com.google.android.material:material:1.7.0-beta01")
implementation("androidx.constraintlayout:constraintlayout:2.2.0-alpha03")
implementation("androidx.preference:preference-ktx:1.2.0")
implementation("androidx.activity:activity-ktx:1.6.0-alpha05")
implementation("androidx.activity:activity-ktx:1.6.0-beta01")
implementation("androidx.fragment:fragment-ktx:1.6.0-alpha01")
implementation("com.jaredrummler:android-shell:1.0.0")
implementation("com.google.firebase:firebase-analytics:21.1.0")
implementation("com.google.firebase:firebase-messaging:23.0.6")
implementation("com.google.firebase:firebase-messaging:23.0.7")
implementation("com.google.code.gson:gson:2.9.1")
implementation("com.bignerdranch.android:simple-item-decoration:1.0.0")
implementation("de.dertyp7214:PRDownloader:v0.6.0")
implementation("com.github.skydoves:balloon:1.4.7-SNAPSHOT")
implementation("com.github.skydoves:balloon:1.4.8-SNAPSHOT")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.4-alpha07")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0-alpha07")
Expand All @@ -105,6 +107,6 @@ dependencies {
implementation("com.github.murgupluoglu:flagkit-android:1.0.2")
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar"))))

debugImplementation("androidx.compose.ui:ui-tooling:1.3.0-alpha02")
debugImplementation("androidx.compose.ui:ui-tooling:1.3.0-alpha03")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.7.20-Beta")
}
Binary file modified app/src/debug/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 42 additions & 48 deletions app/src/debug/res/drawable-v31/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,45 @@
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108"
tools:ignore="VectorRaster">
<group
android:scaleX="0.25"
android:scaleY="0.25">
<group>
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M159.568,302.138L272.972,302.138A5,5 0,0 1,277.972 307.138L277.972,318.277A5,5 0,0 1,272.972 323.277L159.568,323.277A5,5 0,0 1,154.568 318.277L154.568,307.138A5,5 0,0 1,159.568 302.138z"
tools:fillColor="@color/ic_launcher_foreground_monet" />
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M138.67,265.9L148.574,265.9A5,5 0,0 1,153.574 270.9L153.574,281.032A5,5 0,0 1,148.574 286.032L138.67,286.032A5,5 0,0 1,133.67 281.032L133.67,270.9A5,5 0,0 1,138.67 265.9z"
tools:fillColor="@color/ic_launcher_foreground_monet" />
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M138.67,229.663L148.574,229.663A5,5 0,0 1,153.574 234.663L153.574,244.795A5,5 0,0 1,148.574 249.795L138.67,249.795A5,5 0,0 1,133.67 244.795L133.67,234.663A5,5 0,0 1,138.67 229.663z"
tools:fillColor="@color/ic_launcher_foreground_monet" />
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M175.492,265.9L185.396,265.9A5,5 0,0 1,190.396 270.9L190.396,281.032A5,5 0,0 1,185.396 286.032L175.492,286.032A5,5 0,0 1,170.492 281.032L170.492,270.9A5,5 0,0 1,175.492 265.9z"
tools:fillColor="@color/ic_launcher_foreground_monet" />
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M247.146,265.9L257.05,265.9A5,5 0,0 1,262.05 270.9L262.05,281.032A5,5 0,0 1,257.05 286.032L247.146,286.032A5,5 0,0 1,242.146 281.032L242.146,270.9A5,5 0,0 1,247.146 265.9z"
tools:fillColor="@color/ic_launcher_foreground_monet" />
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M283.969,229.663L293.873,229.663A5,5 0,0 1,298.873 234.663L298.873,244.795A5,5 0,0 1,293.873 249.795L283.969,249.795A5,5 0,0 1,278.969 244.795L278.969,234.663A5,5 0,0 1,283.969 229.663z"
tools:fillColor="@color/ic_launcher_foreground_monet" />
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M283.969,265.9L293.873,265.9A5,5 0,0 1,298.873 270.9L298.873,281.032A5,5 0,0 1,293.873 286.032L283.969,286.032A5,5 0,0 1,278.969 281.032L278.969,270.9A5,5 0,0 1,283.969 265.9z"
tools:fillColor="@color/ic_launcher_foreground_monet" />
<path
android:fillColor="@color/ic_launcher_foreground_monet"
android:fillType="evenOdd"
android:pathData="M169.27,132.338v76.547l47.03,39.403 47.496,-39.487 0.375,-76.463L169.27,132.338zM164.27,112.338h104.926c8.313,0 15.04,6.761 15,15.074l-0.411,83.817a15.001,15.001 0,0 1,-5.411 11.461l-58.915,48.981a5,5 0,0 1,-6.407 -0.013l-58.416,-48.941a15.001,15.001 0,0 1,-5.366 -11.498v-83.881c0,-8.284 6.715,-15 15,-15z"
tools:fillColor="@color/ic_launcher_foreground_monet" />
</group>
</group>
</vector>
tools:ignore="VectorRaster" >
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M39.14 63.58c0-0.5 0.4-0.9 0.9-0.9h1.78c0.5 0 0.9 0.4 0.9 0.9v1.82c0 0.5-0.4 0.9-0.9 0.9h-1.78c-0.5 0-0.9-0.4-0.9-0.9v-1.82Z"
tools:fillColor="@color/ic_launcher_foreground_monet"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M42.9 70.1c0-0.5 0.4-0.9 0.9-0.9h20.4c0.5 0 0.9 0.4 0.9 0.9v2c0 0.5-0.4 0.9-0.9 0.9H43.8c-0.5 0-0.9-0.4-0.9-0.9v-2Z"
tools:fillColor="@color/ic_launcher_foreground_monet"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M46.66 62.68c-0.5 0-0.9 0.4-0.9 0.9v1.82c0 0.5 0.4 0.9 0.9 0.9h1.79c0.5 0 0.9-0.4 0.9-0.9v-1.82c0-0.5-0.4-0.9-0.9-0.9h-1.79Z"
tools:fillColor="@color/ic_launcher_foreground_monet"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M58.65 63.58c0-0.5 0.4-0.9 0.9-0.9h1.78c0.5 0 0.9 0.4 0.9 0.9v1.82c0 0.5-0.4 0.9-0.9 0.9h-1.78c-0.5 0-0.9-0.4-0.9-0.9v-1.82Z"
tools:fillColor="@color/ic_launcher_foreground_monet"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M66.18 62.68c-0.5 0-0.9 0.4-0.9 0.9v1.82c0 0.5 0.4 0.9 0.9 0.9h1.78c0.5 0 0.9-0.4 0.9-0.9v-1.82c0-0.5-0.4-0.9-0.9-0.9h-1.78Z"
tools:fillColor="@color/ic_launcher_foreground_monet"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M39.14 57.3c0-0.5 0.4-0.9 0.9-0.9h1.78c0.5 0 0.9 0.4 0.9 0.9v1.82c0 0.5-0.4 0.9-0.9 0.9h-1.78c-0.5 0-0.9-0.4-0.9-0.9V57.3Z"
tools:fillColor="@color/ic_launcher_foreground_monet"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/ic_launcher_foreground_monet"
android:pathData="M66.18 56.4c-0.5 0-0.9 0.4-0.9 0.9v1.82c0 0.5 0.4 0.9 0.9 0.9h1.78c0.5 0 0.9-0.4 0.9-0.9V57.3c0-0.5-0.4-0.9-0.9-0.9h-1.78Z"
tools:fillColor="@color/ic_launcher_foreground_monet"/>
<path
android:fillColor="@color/ic_launcher_foreground_monet"
android:fillType="evenOdd"
android:pathData="M45.56 38.61v13.84l8.36 7.12 8.45-7.14 0.07-13.82H45.56ZM44.66 35h18.67c1.48 0 2.68 1.22 2.67 2.72l-0.07 15.15c0 0.8-0.36 1.56-0.97 2.07L54.5 63.8c-0.34 0.28-0.82 0.28-1.14 0l-10.4-8.84c-0.6-0.52-0.95-1.28-0.95-2.08V37.7c0-1.5 1.2-2.71 2.67-2.71Z"
tools:fillColor="@color/ic_launcher_foreground_monet"/>
</vector>
90 changes: 42 additions & 48 deletions app/src/debug/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,45 @@
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108"
tools:ignore="VectorRaster">
<group
android:scaleX="0.25"
android:scaleY="0.25">
<group>
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M159.568,302.138L272.972,302.138A5,5 0,0 1,277.972 307.138L277.972,318.277A5,5 0,0 1,272.972 323.277L159.568,323.277A5,5 0,0 1,154.568 318.277L154.568,307.138A5,5 0,0 1,159.568 302.138z"
tools:fillColor="@color/foreground_icon_debug" />
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M138.67,265.9L148.574,265.9A5,5 0,0 1,153.574 270.9L153.574,281.032A5,5 0,0 1,148.574 286.032L138.67,286.032A5,5 0,0 1,133.67 281.032L133.67,270.9A5,5 0,0 1,138.67 265.9z"
tools:fillColor="@color/foreground_icon_debug" />
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M138.67,229.663L148.574,229.663A5,5 0,0 1,153.574 234.663L153.574,244.795A5,5 0,0 1,148.574 249.795L138.67,249.795A5,5 0,0 1,133.67 244.795L133.67,234.663A5,5 0,0 1,138.67 229.663z"
tools:fillColor="@color/foreground_icon_debug" />
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M175.492,265.9L185.396,265.9A5,5 0,0 1,190.396 270.9L190.396,281.032A5,5 0,0 1,185.396 286.032L175.492,286.032A5,5 0,0 1,170.492 281.032L170.492,270.9A5,5 0,0 1,175.492 265.9z"
tools:fillColor="@color/foreground_icon_debug" />
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M247.146,265.9L257.05,265.9A5,5 0,0 1,262.05 270.9L262.05,281.032A5,5 0,0 1,257.05 286.032L247.146,286.032A5,5 0,0 1,242.146 281.032L242.146,270.9A5,5 0,0 1,247.146 265.9z"
tools:fillColor="@color/foreground_icon_debug" />
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M283.969,229.663L293.873,229.663A5,5 0,0 1,298.873 234.663L298.873,244.795A5,5 0,0 1,293.873 249.795L283.969,249.795A5,5 0,0 1,278.969 244.795L278.969,234.663A5,5 0,0 1,283.969 229.663z"
tools:fillColor="@color/foreground_icon_debug" />
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M283.969,265.9L293.873,265.9A5,5 0,0 1,298.873 270.9L298.873,281.032A5,5 0,0 1,293.873 286.032L283.969,286.032A5,5 0,0 1,278.969 281.032L278.969,270.9A5,5 0,0 1,283.969 265.9z"
tools:fillColor="@color/foreground_icon_debug" />
<path
android:fillColor="@color/foreground_icon_debug"
android:fillType="evenOdd"
android:pathData="M169.27,132.338v76.547l47.03,39.403 47.496,-39.487 0.375,-76.463L169.27,132.338zM164.27,112.338h104.926c8.313,0 15.04,6.761 15,15.074l-0.411,83.817a15.001,15.001 0,0 1,-5.411 11.461l-58.915,48.981a5,5 0,0 1,-6.407 -0.013l-58.416,-48.941a15.001,15.001 0,0 1,-5.366 -11.498v-83.881c0,-8.284 6.715,-15 15,-15z"
tools:fillColor="@color/foreground_icon_debug" />
</group>
</group>
</vector>
tools:ignore="VectorRaster" >
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M39.14 63.58c0-0.5 0.4-0.9 0.9-0.9h1.78c0.5 0 0.9 0.4 0.9 0.9v1.82c0 0.5-0.4 0.9-0.9 0.9h-1.78c-0.5 0-0.9-0.4-0.9-0.9v-1.82Z"
tools:fillColor="@color/foreground_icon_debug"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M42.9 70.1c0-0.5 0.4-0.9 0.9-0.9h20.4c0.5 0 0.9 0.4 0.9 0.9v2c0 0.5-0.4 0.9-0.9 0.9H43.8c-0.5 0-0.9-0.4-0.9-0.9v-2Z"
tools:fillColor="@color/foreground_icon_debug"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M46.66 62.68c-0.5 0-0.9 0.4-0.9 0.9v1.82c0 0.5 0.4 0.9 0.9 0.9h1.79c0.5 0 0.9-0.4 0.9-0.9v-1.82c0-0.5-0.4-0.9-0.9-0.9h-1.79Z"
tools:fillColor="@color/foreground_icon_debug"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M58.65 63.58c0-0.5 0.4-0.9 0.9-0.9h1.78c0.5 0 0.9 0.4 0.9 0.9v1.82c0 0.5-0.4 0.9-0.9 0.9h-1.78c-0.5 0-0.9-0.4-0.9-0.9v-1.82Z"
tools:fillColor="@color/foreground_icon_debug"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M66.18 62.68c-0.5 0-0.9 0.4-0.9 0.9v1.82c0 0.5 0.4 0.9 0.9 0.9h1.78c0.5 0 0.9-0.4 0.9-0.9v-1.82c0-0.5-0.4-0.9-0.9-0.9h-1.78Z"
tools:fillColor="@color/foreground_icon_debug"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M39.14 57.3c0-0.5 0.4-0.9 0.9-0.9h1.78c0.5 0 0.9 0.4 0.9 0.9v1.82c0 0.5-0.4 0.9-0.9 0.9h-1.78c-0.5 0-0.9-0.4-0.9-0.9V57.3Z"
tools:fillColor="@color/foreground_icon_debug"/>
<path
android:fillAlpha=".8"
android:fillColor="@color/foreground_icon_debug"
android:pathData="M66.18 56.4c-0.5 0-0.9 0.4-0.9 0.9v1.82c0 0.5 0.4 0.9 0.9 0.9h1.78c0.5 0 0.9-0.4 0.9-0.9V57.3c0-0.5-0.4-0.9-0.9-0.9h-1.78Z"
tools:fillColor="@color/foreground_icon_debug"/>
<path
android:fillColor="@color/foreground_icon_debug"
android:fillType="evenOdd"
android:pathData="M45.56 38.61v13.84l8.36 7.12 8.45-7.14 0.07-13.82H45.56ZM44.66 35h18.67c1.48 0 2.68 1.22 2.67 2.72l-0.07 15.15c0 0.8-0.36 1.56-0.97 2.07L54.5 63.8c-0.34 0.28-0.82 0.28-1.14 0l-10.4-8.84c-0.6-0.52-0.95-1.28-0.95-2.08V37.7c0-1.5 1.2-2.71 2.67-2.71Z"
tools:fillColor="@color/foreground_icon_debug"/>
</vector>
Binary file modified app/src/debug/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/debug/res/mipmap-hdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/debug/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/debug/res/mipmap-mdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/debug/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/debug/res/mipmap-xhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/debug/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/debug/res/mipmap-xxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/debug/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/debug/res/mipmap-xxxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/src/debug/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<color name="md3">#363636</color>
<color name="switch_thumb">#404040</color>
<color name="switch_track">#8f8f8f</color>
<color name="background_icon_debug">#580711</color>
<color name="foreground_icon_debug">#FF678C</color>
<color name="background_icon_debug">#362A33</color>
<color name="foreground_icon_debug">#ffffff</color>
<color name="text">#ffffff</color>
<color name="white">#ffffff</color>
<color name="black">#ffffff</color>
Expand Down
4 changes: 2 additions & 2 deletions app/src/debug/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<color name="md3">#e5e5e5</color>
<color name="switch_thumb">#dbdbdb</color>
<color name="switch_track">#8c8c8c</color>
<color name="background_icon_debug">#FF678C</color>
<color name="foreground_icon_debug">#580711</color>
<color name="background_icon_debug">#362A33</color>
<color name="foreground_icon_debug">#ffffff</color>
<color name="text">#000000</color>
<color name="white">#ffffff</color>
<color name="black">#000000</color>
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.rboard" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.rboard" />
<data android:scheme="content" />
<data android:scheme="file" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
Expand All @@ -137,8 +138,9 @@
android:scheme="https" />
</intent-filter>
</activity>
<activity android:name="com.dertyp7214.logs.helpers.CrashReportDialog" />
<activity android:name="com.dertyp7214.logs.screens.Logs" />
<activity
android:name="com.dertyp7214.logs.helpers.CrashReportDialog"
android:exported="false" />

<provider
android:name="androidx.core.content.FileProvider"
Expand Down
Binary file modified app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import com.dertyp7214.logs.helpers.Logger
import com.downloader.PRDownloader
import com.topjohnwu.superuser.Shell
import de.dertyp7214.colorutilsc.ColorUtilsC
import de.dertyp7214.rboardthememanager.core.getAttr
import de.dertyp7214.rboardthememanager.core.hasRoot
import de.dertyp7214.rboardthememanager.core.isReachable
import de.dertyp7214.rboardthememanager.utils.GboardUtils
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/de/dertyp7214/rboardthememanager/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ object Config {
const val GBOARD_PACKAGE_NAME = "com.google.android.inputmethod.latin"
const val RBOARD_THEME_CREATOR_PACKAGE_NAME = "de.dertyp7214.rboardthemecreator"

const val FLAG_PATH = "/data/data/$GBOARD_PACKAGE_NAME/shared_prefs/flag_value.xml"

val MODULE_META = ModuleMeta(
MODULE_ID,
"Rboard Themes",
Expand Down
17 changes: 17 additions & 0 deletions app/src/main/java/de/dertyp7214/rboardthememanager/core/List.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package de.dertyp7214.rboardthememanager.core

import de.dertyp7214.rboardthememanager.data.ThemePack
import de.dertyp7214.rboardthememanager.proto.ThemePackList

operator fun <E> List<E>.times(times: Int): ArrayList<E> {
val list = ArrayList(this)
for (i in 0..times) list.addAll(this)
Expand All @@ -12,4 +15,18 @@ fun List<String>.toMap(): Map<String, Boolean> {
val str = it.removePrefix("true:").removePrefix("false:")
Pair(str, bool)
}
}

fun List<ThemePackList.Object>.toPackList() = map {
ThemePack(
it.getAuthor(),
it.getUrl(),
it.getName(),
it.getTagsList() ?: listOf(),
it.getThemesList(),
it.getSize(),
it.getDescription(),
false,
it.getDate()
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ data class RboardRepo(
)

data class RboardRepoMeta(
val name: String = ""
val name: String = "",
val proto: String? = null,
val protoList: String? = null
)
Loading