Yohei Yukawa | e8d842b | 2018-07-25 18:08:28 -0700 | [diff] [blame^] | 1 | buildscript { |
| 2 | repositories { |
| 3 | google() |
| 4 | jcenter() |
| 5 | } |
| 6 | dependencies { |
| 7 | classpath 'com.android.tools.build:gradle:3.2.0-beta03' |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | apply plugin: 'com.android.application' |
| 12 | |
| 13 | android { |
| 14 | compileSdkVersion 28 |
| 15 | buildToolsVersion '28.0.0' |
| 16 | |
| 17 | // Required if using classes in android.test.runner |
| 18 | useLibrary 'android.test.runner' |
| 19 | |
| 20 | // Required if using classes in android.test.base |
| 21 | useLibrary 'android.test.base' |
| 22 | |
| 23 | // Required if using classes in android.test.mock |
| 24 | useLibrary 'android.test.mock' |
| 25 | |
| 26 | defaultConfig { |
| 27 | minSdkVersion 18 |
| 28 | targetSdkVersion 23 |
| 29 | versionName "1.0" |
| 30 | |
| 31 | applicationId 'com.android.inputmethod.latin' |
| 32 | testApplicationId 'com.android.inputmethod.latin.tests' |
| 33 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| 34 | vectorDrawables.useSupportLibrary = false |
| 35 | } |
| 36 | |
| 37 | buildTypes { |
| 38 | debug { |
| 39 | minifyEnabled false |
| 40 | } |
| 41 | release { |
| 42 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.flags' |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | compileOptions { |
| 47 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 48 | targetCompatibility JavaVersion.VERSION_1_8 |
| 49 | } |
| 50 | |
| 51 | flavorDimensions "default" |
| 52 | |
| 53 | sourceSets { |
| 54 | main { |
| 55 | res.srcDirs = ['java/res'] |
| 56 | java.srcDirs = ['common/src', 'java/src'] |
| 57 | manifest.srcFile 'java/AndroidManifest.xml' |
| 58 | } |
| 59 | |
| 60 | androidTest { |
| 61 | res.srcDirs = ['tests/res'] |
| 62 | java.srcDirs = ['tests/src'] |
| 63 | manifest.srcFile "tests/AndroidManifest.xml" |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | lintOptions { |
| 68 | checkReleaseBuilds false |
| 69 | } |
| 70 | |
| 71 | aaptOptions { |
| 72 | noCompress 'dict' |
| 73 | } |
| 74 | |
| 75 | externalNativeBuild { |
| 76 | ndkBuild { |
| 77 | path 'native/jni/Android.mk' |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | repositories { |
| 83 | maven { url "../../../prebuilts/fullsdk-darwin/extras/android/m2repository" } |
| 84 | maven { url "../../../prebuilts/fullsdk-linux/extras/android/m2repository" } |
| 85 | mavenCentral() |
| 86 | google() |
| 87 | jcenter() |
| 88 | } |
| 89 | |
| 90 | dependencies { |
| 91 | implementation 'androidx.legacy:legacy-support-v4:+' |
| 92 | implementation 'com.google.code.findbugs:jsr305:3.0.2' |
| 93 | |
| 94 | testImplementation 'junit:junit:4.12' |
| 95 | androidTestImplementation "org.mockito:mockito-core:1.9.5" |
| 96 | androidTestImplementation 'com.google.dexmaker:dexmaker:1.2' |
| 97 | androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2' |
| 98 | androidTestImplementation 'com.android.support.test:runner:1.0.2' |
| 99 | androidTestImplementation 'com.android.support.test:rules:1.0.2' |
| 100 | androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3' |
| 101 | androidTestImplementation "com.android.support:support-annotations:27.1.1" |
| 102 | } |