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
2 changes: 1 addition & 1 deletion test-app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ tasks.configureEach({ DefaultTask currentTask ->

// // ensure buildMetadata is done before R8 to allow custom proguard from metadata
if (currentTask =~ /minify.*WithR8/) {
buildMetadata.finalizedBy(currentTask)
// buildMetadata.finalizedBy(currentTask)
}
if (currentTask =~ /assemble.*Debug/ || currentTask =~ /assemble.*Release/) {
currentTask.finalizedBy("validateAppIdMatch")
Expand Down
2 changes: 2 additions & 0 deletions test-app/runtime/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ android {
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
}
}

consumerProguardFiles 'consumer-rules.pro'
}

compileOptions {
Expand Down
11 changes: 11 additions & 0 deletions test-app/runtime/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Keep all runtime classes
-keep class com.tns.* { *; }

# Keep SBG-generated classes
-keep class com.tns.gen.** { *; }

# Keep internal support/runtime classes
-keep class com.tns.internal.** { *; }

# Preserve annotation metadata so reflection sees them
-keepattributes RuntimeVisibleAnnotations
Loading