| repositories { |
| google() |
| jcenter() |
| } |
| |
| buildscript { |
| repositories { |
| google() |
| jcenter() |
| } |
| |
| dependencies { |
| classpath 'com.android.tools.build:gradle:3.0.1' |
| } |
| } |
| |
| def keystorePropertiesFile = rootProject.file("keystore.properties") |
| def keystoreProperties = new Properties() |
| keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) |
| |
| apply plugin: 'com.android.application' |
| |
| android { |
| compileSdkVersion 27 |
| buildToolsVersion '27.0.3' |
| |
| defaultConfig { |
| minSdkVersion 24 |
| targetSdkVersion 27 |
| } |
| |
| lintOptions { |
| ignore 'ProtectedPermissions' |
| // These depend on translations |
| ignore 'ExtraTranslation', 'ImpliedQuantity', 'MissingQuantity', 'MissingTranslation' |
| } |
| |
| sourceSets { |
| main { |
| res.srcDirs = ['res'] |
| java.srcDirs = ['src'] |
| manifest.srcFile 'AndroidManifest.xml' |
| } |
| } |
| |
| compileOptions { |
| sourceCompatibility JavaVersion.VERSION_1_8 |
| targetCompatibility JavaVersion.VERSION_1_8 |
| } |
| |
| signingConfigs { |
| debug { |
| keyAlias keystoreProperties['keyAlias'] |
| keyPassword keystoreProperties['keyPassword'] |
| storeFile file(keystoreProperties['storeFile']) |
| storePassword keystoreProperties['storePassword'] |
| } |
| } |
| } |
| |
| dependencies { |
| compileOnly fileTree(dir: 'system_libs/', include: ['*.jar']) |
| |
| def supportLibVersion = "27.0.2" |
| implementation "com.android.support:appcompat-v7:${supportLibVersion}" |
| implementation "com.android.support:cardview-v7:${supportLibVersion}" |
| implementation "com.android.support:design:${supportLibVersion}" |
| implementation "com.android.support:preference-v7:${supportLibVersion}" |
| implementation "com.android.support:recyclerview-v7:${supportLibVersion}" |
| } |