diff --git a/analytics/build.gradle b/analytics/build.gradle index 54822a0e65..5c9cd93415 100644 --- a/analytics/build.gradle +++ b/analytics/build.gradle @@ -15,8 +15,6 @@ android { buildTypes { release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' buildConfigField "boolean", "SEND_EVENTS", "true" } debug { diff --git a/analytics/consumer-rules.pro b/analytics/consumer-rules.pro deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/analytics/proguard-rules.pro b/analytics/proguard-rules.pro deleted file mode 100644 index f1b424510d..0000000000 --- a/analytics/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/app/build.gradle b/app/build.gradle index f24c3674cb..1a635808fd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -65,12 +65,15 @@ android { buildTypes { release { - minifyEnabled false - debuggable false + minifyEnabled true + shrinkResources true + debuggable true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' buildConfigField("String", "AMPLITUDE_KEY", apikeyProperties['amplitude.release']) if (useReleaseKeystore) { signingConfig signingConfigs.release + } else { + signingConfig signingConfigs.debug } } diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index f1b424510d..16f033588d 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -19,3 +19,4 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile +-dontobfuscate \ No newline at end of file diff --git a/clipboard/build.gradle b/clipboard/build.gradle index 84d670aaf3..2f0a524686 100644 --- a/clipboard/build.gradle +++ b/clipboard/build.gradle @@ -19,8 +19,6 @@ android { buildConfigField ANYTYPE_CLIPBOARD_LABEL_TYPE, ANYTYPE_CLIPBOARD_LABEL, ANYTYPE_CLIPBOARD_LABEL_VALUE } release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' buildConfigField ANYTYPE_CLIPBOARD_URI_TYPE, ANYTYPE_CLIPBOARD_URI, ANYTYPE_CLIPBOARD_URI_VALUE buildConfigField ANYTYPE_CLIPBOARD_LABEL_TYPE, ANYTYPE_CLIPBOARD_LABEL, ANYTYPE_CLIPBOARD_LABEL_VALUE } diff --git a/clipboard/consumer-rules.pro b/clipboard/consumer-rules.pro deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/clipboard/proguard-rules.pro b/clipboard/proguard-rules.pro deleted file mode 100644 index f1b424510d..0000000000 --- a/clipboard/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/core-models/proguard-rules.pro b/core-models/proguard-rules.pro deleted file mode 100644 index 481bb43481..0000000000 --- a/core-models/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/core-ui/consumer-rules.pro b/core-ui/consumer-rules.pro deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/core-ui/proguard-rules.pro b/core-ui/proguard-rules.pro deleted file mode 100644 index f1b424510d..0000000000 --- a/core-ui/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/core-utils/build.gradle b/core-utils/build.gradle index f3b7d0a14b..d436812548 100644 --- a/core-utils/build.gradle +++ b/core-utils/build.gradle @@ -14,13 +14,6 @@ android { buildConfigField "boolean", "USE_NEW_WINDOW_INSET_API", "true" } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - buildFeatures { viewBinding true } diff --git a/core-utils/proguard-rules.pro b/core-utils/proguard-rules.pro deleted file mode 100644 index f1b424510d..0000000000 --- a/core-utils/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/device/build.gradle b/device/build.gradle index 93f304e056..2142047266 100644 --- a/device/build.gradle +++ b/device/build.gradle @@ -13,13 +13,6 @@ android { testInstrumentationRunner config["test_runner"] } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - testOptions { unitTests { includeAndroidResources = true diff --git a/device/consumer-rules.pro b/device/consumer-rules.pro deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/device/proguard-rules.pro b/device/proguard-rules.pro deleted file mode 100644 index f1b424510d..0000000000 --- a/device/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/library-emojifier/build.gradle b/library-emojifier/build.gradle index b3fa7cd782..188b246df9 100644 --- a/library-emojifier/build.gradle +++ b/library-emojifier/build.gradle @@ -13,13 +13,6 @@ android { testInstrumentationRunner config["test_runner"] } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - testOptions { unitTests { includeAndroidResources = true diff --git a/library-emojifier/consumer-rules.pro b/library-emojifier/consumer-rules.pro deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/library-emojifier/proguard-rules.pro b/library-emojifier/proguard-rules.pro deleted file mode 100644 index f1b424510d..0000000000 --- a/library-emojifier/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/library-syntax-highlighter/build.gradle b/library-syntax-highlighter/build.gradle index b53e339f73..892d056c38 100644 --- a/library-syntax-highlighter/build.gradle +++ b/library-syntax-highlighter/build.gradle @@ -14,13 +14,6 @@ android { testInstrumentationRunner config["test_runner"] } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - testOptions { unitTests { includeAndroidResources = true diff --git a/library-syntax-highlighter/consumer-rules.pro b/library-syntax-highlighter/consumer-rules.pro deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/library-syntax-highlighter/proguard-rules.pro b/library-syntax-highlighter/proguard-rules.pro deleted file mode 100644 index 481bb43481..0000000000 --- a/library-syntax-highlighter/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/middleware/build.gradle b/middleware/build.gradle index 4ab3f66b4d..f401c531cf 100644 --- a/middleware/build.gradle +++ b/middleware/build.gradle @@ -13,13 +13,6 @@ android { targetSdkVersion config["target_sdk"] testInstrumentationRunner config["test_runner"] } - - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } } dependencies { diff --git a/middleware/proguard-rules.pro b/middleware/proguard-rules.pro deleted file mode 100644 index f1b424510d..0000000000 --- a/middleware/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/persistence/build.gradle b/persistence/build.gradle index b5cceef373..ee3eab5645 100644 --- a/persistence/build.gradle +++ b/persistence/build.gradle @@ -13,13 +13,6 @@ android { testInstrumentationRunner config["test_runner"] } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 diff --git a/persistence/proguard-rules.pro b/persistence/proguard-rules.pro deleted file mode 100644 index f1b424510d..0000000000 --- a/persistence/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/presentation/proguard-rules.pro b/presentation/proguard-rules.pro deleted file mode 100644 index f1b424510d..0000000000 --- a/presentation/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/protocol/consumer-rules.pro b/protocol/consumer-rules.pro deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/protocol/proguard-rules.pro b/protocol/proguard-rules.pro deleted file mode 100644 index 481bb43481..0000000000 --- a/protocol/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file