1 apply plugin: 'com.android.application'
2 apply plugin: 'kotlin-android'
3 apply plugin: 'kotlin-android-extensions'
7 buildToolsVersion "30.0.2"
10 applicationId "com.google.chip.chiptool"
16 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18 // NOTE: This build assumes CHIP was configured and built for armeabi-v7a. Deal with
19 // other archs later when build is sane.
20 // ndk {abiFilters 'armeabi-v7a'}
26 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
30 sourceCompatibility JavaVersion.VERSION_1_8
31 targetCompatibility JavaVersion.VERSION_1_8
35 resolutionStrategy.eachDependency {DependencyResolveDetails details ->
36 def requested = details.requested
37 if (requested.group == "androidx") {
38 if (!requested.name.startsWith("multidex")) {
39 details.useVersion "${targetSdk}.+"
47 def room_version = "2.2.5"
49 implementation "androidx.room:room-runtime:$room_version"
50 annotationProcessor "androidx.room:room-compiler:$room_version"
52 implementation fileTree(dir: "libs", include: ["*.jar", "*.so"])
53 implementation 'androidx.appcompat:appcompat:1.1.0'
54 implementation 'androidx.preference:preference:1.1.1'
55 implementation "com.google.android.gms:play-services-vision:20.1.0"
56 implementation 'androidx.fragment:fragment:1.3.0-beta01'
57 implementation "androidx.annotation:annotation:1.1.0"
58 implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0'
59 implementation 'androidx.navigation:navigation-ui-ktx:2.3.0'
60 implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
61 testImplementation 'junit:junit:4.12'
62 androidTestImplementation 'androidx.test.ext:junit:1.1.1'
63 androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
64 implementation "androidx.core:core-ktx:1.3.0"
65 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
66 implementation "androidx.work:work-runtime:2.3.3"
67 implementation 'com.google.code.gson:gson:2.8.5'