| apply plugin: 'com.android.application' |
| |
| android { |
| compileSdkVersion 29 |
| defaultConfig { |
| applicationId "com.fairphone.psensor" |
| minSdkVersion 22 |
| //noinspection OldTargetApi |
| targetSdkVersion 28 |
| versionCode 20400 |
| versionName "2.4.0" |
| } |
| buildTypes { |
| release { |
| minifyEnabled false |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| } |
| debug { |
| minifyEnabled false |
| } |
| } |
| productFlavors { |
| } |
| lintOptions { |
| checkReleaseBuilds false |
| // Or, if you prefer, you can continue to check for errors in release builds, |
| // but continue the build even when errors are found: |
| abortOnError false |
| } |
| } |
| |
| /* |
| * 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 fileTree(include: ['*.jar'], dir: 'libs') |
| implementation 'androidx.appcompat:appcompat:1.2.0' |
| implementation "androidx.work:work-runtime:$work_version" |
| } |