cjybyjk | b69ee3c | 2020-08-17 19:50:04 +0800 | [diff] [blame] | 1 | apply plugin: 'com.android.application' |
| 2 | |
| 3 | android { |
| 4 | compileSdkVersion 29 |
| 5 | buildToolsVersion "29.0.3" |
| 6 | |
| 7 | defaultConfig { |
| 8 | applicationId "org.exthmui.game" |
| 9 | minSdkVersion 29 |
| 10 | targetSdkVersion 29 |
| 11 | versionCode 1 |
| 12 | versionName "1.0" |
| 13 | |
| 14 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| 15 | } |
| 16 | |
| 17 | buildTypes { |
| 18 | release { |
| 19 | minifyEnabled false |
| 20 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| 21 | } |
| 22 | } |
| 23 | compileOptions { |
| 24 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 25 | targetCompatibility JavaVersion.VERSION_1_8 |
| 26 | } |
cjybyjk | 0fb953c | 2021-07-07 22:10:11 +0800 | [diff] [blame] | 27 | sourceSets { |
| 28 | main { |
| 29 | aidl.srcDirs = ['src/main/java'] |
| 30 | } |
| 31 | } |
cjybyjk | b69ee3c | 2020-08-17 19:50:04 +0800 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | dependencies { |
| 35 | compileOnly fileTree(dir: 'system_libs/', include: ['*.jar']) |
| 36 | |
| 37 | implementation fileTree(dir: "libs", include: ["*.jar"]) |
| 38 | |
| 39 | implementation 'androidx.appcompat:appcompat:1.2.0' |
| 40 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' |
| 41 | implementation 'androidx.preference:preference:1.1.1' |
| 42 | implementation 'com.google.android.material:material:1.1.0' |
| 43 | implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' |
| 44 | testImplementation 'junit:junit:4.12' |
| 45 | androidTestImplementation 'androidx.test.ext:junit:1.1.1' |
| 46 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' |
| 47 | |
| 48 | } |
| 49 | |
| 50 | allprojects{ |
| 51 | gradle.projectsEvaluated { |
| 52 | tasks.withType(JavaCompile) { |
| 53 | options.compilerArgs.add('-Xbootclasspath/p:app/system_libs/framework.jar') |
| 54 | } |
| 55 | } |
| 56 | } |