Skip to content

Commit b6b9cb3

Browse files
committed
chore: add consumer proguard rules for service modules
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 279d9a4 commit b6b9cb3

12 files changed

Lines changed: 48 additions & 0 deletions

services/code/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ android {
1414
buildToolsVersion = Android.buildToolsVersion
1515
testInstrumentationRunner = Android.testInstrumentationRunner
1616

17+
consumerProguardFiles("consumer-rules.pro")
18+
1719
buildConfigField("String", "VERSION_NAME", "\"${Packaging.Code.versionName}\"")
1820
buildConfigField("Boolean", "NOTIFY_ERRORS", "false")
1921
buildConfigField(

services/code/consumer-rules.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Needed to keep generic signatures
2+
-keepattributes Signature
3+
4+
-keepclasseswithmembernames class * {
5+
native <methods>;
6+
}

services/flipchat/chat/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ android {
1414
buildToolsVersion = Android.buildToolsVersion
1515
testInstrumentationRunner = Android.testInstrumentationRunner
1616

17+
consumerProguardFiles("consumer-rules.pro")
18+
1719
buildConfigField("String", "VERSION_NAME", "\"${Packaging.Flipchat.versionName}\"")
1820
}
1921

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Needed to keep generic signatures
2+
-keepattributes Signature
3+
4+
-keepclasseswithmembernames class * {
5+
native <methods>;
6+
}

services/flipchat/core/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ android {
1414
buildToolsVersion = Android.buildToolsVersion
1515
testInstrumentationRunner = Android.testInstrumentationRunner
1616

17+
consumerProguardFiles("consumer-rules.pro")
18+
1719
buildConfigField("String", "VERSION_NAME", "\"${Packaging.Flipchat.versionName}\"")
1820

1921
buildConfigField("Boolean", "NOTIFY_ERRORS", "false")
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Needed to keep generic signatures
2+
-keepattributes Signature
3+
4+
-keepclasseswithmembernames class * {
5+
native <methods>;
6+
}

services/flipchat/payments/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ android {
1414
buildToolsVersion = Android.buildToolsVersion
1515
testInstrumentationRunner = Android.testInstrumentationRunner
1616

17+
consumerProguardFiles("consumer-rules.pro")
18+
1719
buildConfigField("String", "VERSION_NAME", "\"${Packaging.Flipchat.versionName}\"")
1820

1921
javaCompileOptions {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Needed to keep generic signatures
2+
-keepattributes Signature
3+
4+
-keepclasseswithmembernames class * {
5+
native <methods>;
6+
}

services/flipchat/sdk/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ android {
1414
buildToolsVersion = Android.buildToolsVersion
1515
testInstrumentationRunner = Android.testInstrumentationRunner
1616

17+
consumerProguardFiles("consumer-rules.pro")
18+
1719
buildConfigField("String", "VERSION_NAME", "\"${Packaging.Flipchat.versionName}\"")
1820

1921
buildConfigField("Boolean", "NOTIFY_ERRORS", "false")
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Needed to keep generic signatures
2+
-keepattributes Signature
3+
4+
-keepclasseswithmembernames class * {
5+
native <methods>;
6+
}

0 commit comments

Comments
 (0)