Browse Source

enable optimisations and minifying for release builds

* closes #19
* update gradle wrapper to version 6.6
pull/46/head
Jannik 6 months ago
parent
commit
be30e2f968
Signed by: Seil0 GPG Key ID: E8459F3723C52C24
4 changed files with 8 additions and 4 deletions
  1. +2
    -2
      app/build.gradle
  2. +2
    -0
      app/proguard-rules.pro
  3. +3
    -1
      app/src/main/java/org/mosad/seil0/projectlaogai/controller/cache/TimetableController.kt
  4. +1
    -1
      gradle/wrapper/gradle-wrapper.properties

+ 2
- 2
app/build.gradle View File

@ -19,8 +19,8 @@ android {
buildTypes {
release {
minifyEnabled false
shrinkResources false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}


+ 2
- 0
app/proguard-rules.pro View File

@ -15,7 +15,9 @@
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-dontobfuscate
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keep class org.mosad.seil0.projectlaogai.util.** { <fields>; }

+ 3
- 1
app/src/main/java/org/mosad/seil0/projectlaogai/controller/cache/TimetableController.kt View File

@ -34,7 +34,9 @@ import org.mosad.seil0.projectlaogai.util.TimetableWeek
* and lessonMap objects. It also contains the additional subjects logic.
* All functions ro read or update cache files are located in the CacheController.
*
* TODO add configurable week to addSubject() and removeSubject(), updateAdditionalLessons()
* TODO
* * add second week
* * add configurable week to addSubject() and removeSubject(), updateAdditionalLessons()
*/
class TimetableController {


+ 1
- 1
gradle/wrapper/gradle-wrapper.properties View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

Loading…
Cancel
Save