Browse Source

enable optimisations and minifying for release builds

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

4
app/build.gradle

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

2
app/proguard-rules.pro

@ -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>; }

4
app/src/main/java/org/mosad/seil0/projectlaogai/controller/cache/TimetableController.kt

@ -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 {

2
gradle/wrapper/gradle-wrapper.properties

@ -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