Skip to content

Commit

Permalink
feat: Enable proguard and fix minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal committed Nov 24, 2017
1 parent f55ab03 commit 2eb5fe9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
/release
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ android {
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
9 changes: 9 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-dontwarn javax.annotation**
-dontwarn com.google.errorprone.annotations.*

-keep class io.amu.oss.data.model.** {
*;
}

-keepattributes SourceFile,LineNumberTable,*Annotation*,EnclosingMethod,Signature,Exceptions,InnerClasses
2 changes: 1 addition & 1 deletion app/src/main/java/io/amu/oss/data/model/Notification.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package io.amu.oss.data.model
data class Notification(
val title: String = "Notification Update",
val body: String = "",
val color: String = "#aaa",
val color: String = "#aaaaaa",
val timestamp: String? = null,
val skip: Boolean = false,
val sent: Boolean = false,
Expand Down

0 comments on commit 2eb5fe9

Please sign in to comment.