Skip to content

Commit

Permalink
Enable R8 for all sample apps
Browse files Browse the repository at this point in the history
  • Loading branch information
christofferqa committed Nov 11, 2020
1 parent 1239fac commit 779cf9e
Show file tree
Hide file tree
Showing 31 changed files with 104 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Crane/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ android {
}

release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
7 changes: 5 additions & 2 deletions Crane/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-renamesourcefileattribute SourceFile

# Repackage classes into the top-level.
-repackageclasses
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object Libs {
const val extensions = "org.jetbrains.kotlin:kotlin-android-extensions:$version"

object Coroutines {
private const val version = "1.4.0"
private const val version = "1.4.1"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
}
Expand Down
3 changes: 3 additions & 0 deletions Crane/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ android.enableJetifier=true

# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Enable R8 full mode.
android.enableR8.fullMode=true
3 changes: 2 additions & 1 deletion JetNews/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ android {
}

release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down Expand Up @@ -77,6 +77,7 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"

implementation "androidx.compose.runtime:runtime:$compose_version"
implementation "androidx.compose.ui:ui:$compose_version"
Expand Down
7 changes: 5 additions & 2 deletions JetNews/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-renamesourcefileattribute SourceFile

# Repackage classes into the top-level.
-repackageclasses
1 change: 1 addition & 0 deletions JetNews/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
buildscript {
ext.kotlin_version = '1.4.10'
ext.compose_version = '1.0.0-SNAPSHOT'
ext.coroutines_version = '1.4.1'

repositories {
google()
Expand Down
3 changes: 3 additions & 0 deletions JetNews/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ android.useAndroidX=true

# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Enable R8 full mode.
android.enableR8.fullMode=true
21 changes: 19 additions & 2 deletions Jetcaster/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,25 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-renamesourcefileattribute SourceFile

# Repackage classes into the top-level.
-repackageclasses

# Rome reflectively loads classes referenced in com/rometools/rome/rome.properties.
-adaptresourcefilecontents com/rometools/rome/rome.properties
-keep,allowobfuscation class * implements com.rometools.rome.feed.synd.Converter
-keep,allowobfuscation class * implements com.rometools.rome.io.ModuleParser
-keep,allowobfuscation class * implements com.rometools.rome.io.WireFeedParser

# Disable warnings for missing classes from OkHttp.
-dontwarn org.conscrypt.ConscryptHostnameVerifier

# Disable warnings for missing classes from JDOM.
-dontwarn org.jaxen.DefaultNavigator
-dontwarn org.jaxen.NamespaceContext
-dontwarn org.jaxen.VariableContext
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ object Libs {
}

object Coroutines {
private const val version = "1.4.0"
private const val version = "1.4.1"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
}

object OkHttp {
private const val version = "4.7.2"
private const val version = "4.9.0"
const val okhttp = "com.squareup.okhttp3:okhttp:$version"
const val logging = "com.squareup.okhttp3:logging-interceptor:$version"
}
Expand Down
3 changes: 3 additions & 0 deletions Jetcaster/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ android.useAndroidX=true

# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Enable R8 full mode.
android.enableR8.fullMode=true
2 changes: 1 addition & 1 deletion Jetchat/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ android {
}

release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
7 changes: 5 additions & 2 deletions Jetchat/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-renamesourcefileattribute SourceFile

# Repackage classes into the top-level.
-repackageclasses
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object Libs {
}

object Coroutines {
private const val version = "1.3.9"
private const val version = "1.4.1"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
Expand Down
3 changes: 3 additions & 0 deletions Jetchat/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ android.useAndroidX=true

# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Enable R8 full mode.
android.enableR8.fullMode=true
4 changes: 2 additions & 2 deletions Jetsnack/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ android {
}

release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand All @@ -77,8 +77,8 @@ android {
}

dependencies {

implementation Libs.Kotlin.stdlib
implementation Libs.Coroutines.android

implementation Libs.Coroutines.core

Expand Down
7 changes: 5 additions & 2 deletions Jetsnack/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-renamesourcefileattribute SourceFile

# Repackage classes into the top-level.
-repackageclasses
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object Libs {
}

object Coroutines {
private const val version = "1.4.0"
private const val version = "1.4.1"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
Expand Down
3 changes: 3 additions & 0 deletions Jetsnack/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ android.useAndroidX=true

# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Enable R8 full mode.
android.enableR8.fullMode=true
3 changes: 2 additions & 1 deletion Jetsurvey/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ android {
}

release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down Expand Up @@ -87,6 +87,7 @@ android {

dependencies {
implementation Libs.Kotlin.stdlib
implementation Libs.Coroutines.android

implementation Libs.AndroidX.coreKtx
implementation Libs.AndroidX.appcompat
Expand Down
7 changes: 5 additions & 2 deletions Jetsurvey/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-renamesourcefileattribute SourceFile

# Repackage classes into the top-level.
-repackageclasses
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ object Libs {
const val extensions = "org.jetbrains.kotlin:kotlin-android-extensions:$version"
}

object Coroutines {
private const val version = "1.4.1"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
}

object AndroidX {
const val appcompat = "androidx.appcompat:appcompat:1.2.0-rc01"
const val coreKtx = "androidx.core:core-ktx:1.5.0-alpha01"
Expand Down
3 changes: 3 additions & 0 deletions Jetsurvey/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ android.useAndroidX=true

# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Enable R8 full mode.
android.enableR8.fullMode=true
3 changes: 2 additions & 1 deletion Owl/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ android {
}

release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down Expand Up @@ -78,6 +78,7 @@ android {

dependencies {
implementation Libs.Kotlin.stdlib
implementation Libs.Coroutines.android

implementation Libs.AndroidX.coreKtx

Expand Down
7 changes: 5 additions & 2 deletions Owl/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-renamesourcefileattribute SourceFile

# Repackage classes into the top-level.
-repackageclasses
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object Libs {
}

object Coroutines {
private const val version = "1.4.0"
private const val version = "1.4.1"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
Expand Down
3 changes: 3 additions & 0 deletions Owl/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ android.useAndroidX=true

# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Enable R8 full mode.
android.enableR8.fullMode=true
2 changes: 1 addition & 1 deletion Rally/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ android {
}

release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
7 changes: 5 additions & 2 deletions Rally/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-renamesourcefileattribute SourceFile

# Repackage classes into the top-level.
-repackageclasses
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object Libs {
}

object Coroutines {
private const val version = "1.3.9"
private const val version = "1.4.1"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
Expand Down
3 changes: 3 additions & 0 deletions Rally/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ android.useAndroidX=true

# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Enable R8 full mode.
android.enableR8.fullMode=true

0 comments on commit 779cf9e

Please sign in to comment.