blob: ab631c0efe96c9a8ec9265f24605d3021944a864 [file] [log] [blame]
Yohei Yukawae8d842b2018-07-25 18:08:28 -07001buildscript {
2 repositories {
3 google()
4 jcenter()
5 }
6 dependencies {
7 classpath 'com.android.tools.build:gradle:3.2.0-beta03'
8 }
9}
10
11apply plugin: 'com.android.application'
12
13android {
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 {
Yohei Yukawa04573e32018-11-13 13:51:59 -080027 minSdkVersion 21
28 targetSdkVersion 28
Yohei Yukawae8d842b2018-07-25 18:08:28 -070029 versionName "1.0"
30
31 applicationId 'com.android.inputmethod.latin'
32 testApplicationId 'com.android.inputmethod.latin.tests'
Brett Chabotc05a70a2018-12-13 19:06:42 -080033 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Yohei Yukawae8d842b2018-07-25 18:08:28 -070034 vectorDrawables.useSupportLibrary = false
Yohei Yukawac884b662018-07-25 18:08:35 -070035
36 signingConfig signingConfigs.debug
37 }
38
39 signingConfigs {
40 debug {
41 storeFile file("java/shared.keystore")
42 }
Yohei Yukawae8d842b2018-07-25 18:08:28 -070043 }
44
45 buildTypes {
46 debug {
47 minifyEnabled false
48 }
49 release {
50 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.flags'
51 }
52 }
53
54 compileOptions {
55 sourceCompatibility JavaVersion.VERSION_1_8
56 targetCompatibility JavaVersion.VERSION_1_8
57 }
58
59 flavorDimensions "default"
60
61 sourceSets {
62 main {
63 res.srcDirs = ['java/res']
64 java.srcDirs = ['common/src', 'java/src']
65 manifest.srcFile 'java/AndroidManifest.xml'
66 }
67
68 androidTest {
69 res.srcDirs = ['tests/res']
70 java.srcDirs = ['tests/src']
71 manifest.srcFile "tests/AndroidManifest.xml"
72 }
73 }
74
75 lintOptions {
76 checkReleaseBuilds false
77 }
78
79 aaptOptions {
80 noCompress 'dict'
81 }
82
83 externalNativeBuild {
84 ndkBuild {
85 path 'native/jni/Android.mk'
86 }
87 }
88}
89
90repositories {
91 maven { url "../../../prebuilts/fullsdk-darwin/extras/android/m2repository" }
92 maven { url "../../../prebuilts/fullsdk-linux/extras/android/m2repository" }
93 mavenCentral()
94 google()
95 jcenter()
96}
97
98dependencies {
99 implementation 'androidx.legacy:legacy-support-v4:+'
100 implementation 'com.google.code.findbugs:jsr305:3.0.2'
101
102 testImplementation 'junit:junit:4.12'
103 androidTestImplementation "org.mockito:mockito-core:1.9.5"
104 androidTestImplementation 'com.google.dexmaker:dexmaker:1.2'
105 androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2'
106 androidTestImplementation 'com.android.support.test:runner:1.0.2'
107 androidTestImplementation 'com.android.support.test:rules:1.0.2'
108 androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
109 androidTestImplementation "com.android.support:support-annotations:27.1.1"
110}