• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1buildscript {
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 {
27        minSdkVersion 21
28        targetSdkVersion 28
29        versionName "1.0"
30
31        applicationId 'com.android.inputmethod.latin'
32        testApplicationId 'com.android.inputmethod.latin.tests'
33        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
34        vectorDrawables.useSupportLibrary = false
35
36        signingConfig signingConfigs.debug
37    }
38
39    signingConfigs {
40        debug {
41            storeFile file("java/shared.keystore")
42        }
43    }
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}
111