Skip to content
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
19 changes: 12 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// START Non-FOSS component
import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsExtension
import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin
// END Non-FOSS component
import com.google.gms.googleservices.GoogleServicesPlugin
Expand Down Expand Up @@ -73,12 +74,17 @@ android {
}
}
release {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",
)
optimization {
enable = true
}
// START Non-FOSS component
if (project.file("google-services.json").exists()) {
configure<CrashlyticsExtension> {
// Crashlytics 3.0.8 still detects the legacy minify flag.
mappingFileUploadEnabled = true
}
}
// END Non-FOSS component
if (hasSigningProps) {
signingConfig = signingConfigs.getByName("flare")
} else {
Expand Down Expand Up @@ -245,4 +251,3 @@ kotlin {
}
}
}

93 changes: 0 additions & 93 deletions app/proguard-rules.pro

This file was deleted.

22 changes: 22 additions & 0 deletions app/src/main/keepRules/app.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Temporary compatibility workaround for Ktorfit 2.7.5.
# ktorfit-lib-light-android omits the rule bundled in the JVM artifact, which
# allows R8 to break the generic type data consumed by response converters.
# Re-evaluate after upgrading to an Android artifact that bundles the rule.
-keep class de.jensklingenberg.ktorfit.** { *; }

# Temporary compatibility workaround for nostr-sdk-kmp 0.44.8.
# Its published Android consumer rule targets rust.nostr.*, while the generated
# UniFFI/JNA bindings are in rust.nostr.sdk. Re-evaluate after upgrading it or
# validating that the narrower JNA boundary rules are sufficient in release.
-keep class rust.nostr.sdk.** { *; }

# Optional JVM management APIs are not available on Android. Keep these
# suppressions until a clean optimized release succeeds without them.
-dontwarn java.lang.management.**
-dontwarn javax.management.**

# Intentional optimizer assumption: force link-buffer composer on in release.
# Remove this rule if the project should follow Compose runtime's default.
-assumevalues public class androidx.compose.runtime.ComposeRuntimeFlags {
static boolean isLinkBufferComposerEnabled return true;
}
2 changes: 1 addition & 1 deletion build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repositories {
}

dependencies {
compileOnly("com.android.tools.build:gradle:9.3.1")
compileOnly("com.android.tools.build:gradle:9.3.2")
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:2.4.10")
implementation("org.jlleitschuh.gradle:ktlint-gradle:14.2.0")
}
Expand Down
Loading