| apply plugin: 'com.android.application' |
| |
| android { |
| compileSdkVersion 30 |
| defaultConfig { |
| applicationId "com.fairphone.updater" |
| minSdkVersion 23 |
| targetSdkVersion 30 |
| versionCode 15005 |
| versionName '1.50.5' |
| } |
| buildTypes { |
| release { |
| minifyEnabled true |
| shrinkResources true |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| } |
| } |
| } |
| |
| /* |
| * Configures how to sign release builds |
| * |
| * Reads configuration from a file keystore.propertes if it exists. Falls back |
| * to the default development keys otherwise (by doing nothing). |
| */ |
| def keystorePropertiesFile = rootProject.file("keystore.properties") |
| |
| if (keystorePropertiesFile.exists()) { |
| |
| // Load keystore properties from file if it exists |
| def keystoreProperties = new Properties() |
| keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) |
| |
| android { |
| signingConfigs { |
| release { |
| keyAlias keystoreProperties['keyAlias'] |
| keyPassword keystoreProperties['keyPassword'] |
| storeFile file(keystoreProperties['storeFile']) |
| storePassword keystoreProperties['storePassword'] |
| } |
| } |
| buildTypes { |
| release { |
| signingConfig signingConfigs.release |
| } |
| } |
| } |
| } |
| |
| dependencies { |
| def work_version = '2.5.0' |
| implementation 'androidx.appcompat:appcompat:1.3.0' |
| implementation "androidx.work:work-runtime:$work_version" |
| testImplementation 'org.robolectric:robolectric:4.6.1' |
| testImplementation 'junit:junit:4.13.2' |
| } |