1414
1515import groovy.json.JsonSlurper
1616
17-
1817def getApiKey (){
1918 def Properties props = new Properties ()
2019 props. load(new FileInputStream (new File (' local.properties' )))
@@ -29,18 +28,25 @@ buildscript {
2928
3029 dependencies {
3130 classpath(" com.android.tools.build:gradle:7.2.1" )
31+ classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0" )
3232 }
3333}
3434
3535plugins {
3636 id " com.google.cloud.artifactregistry.gradle-plugin" version " 2.1.5"
3737}
3838apply plugin : ' com.android.library'
39+ apply plugin : ' kotlin-android'
3940
4041android {
4142 buildToolsVersion = " 31.0.0"
4243 compileSdkVersion = 31
4344
45+ compileOptions {
46+ sourceCompatibility JavaVersion . VERSION_1_8
47+ targetCompatibility JavaVersion . VERSION_1_8
48+ }
49+
4450 defaultConfig {
4551 minSdkVersion 23
4652 targetSdkVersion 31
@@ -49,35 +55,23 @@ android {
4955 versionName " 1.0"
5056 manifestPlaceholders = [ MAPS_API_KEY :getApiKey()]
5157 }
58+
5259 lintOptions {
5360 abortOnError false
5461 }
62+
63+ kotlinOptions {
64+ jvmTarget = ' 1.8'
65+ }
5566}
5667
5768repositories {
5869 google()
5970 mavenCentral()
60- maven {
61- url " artifactregistry://us-west2-maven.pkg.dev/gmp-artifacts/transportation"
62- }
6371}
6472
6573dependencies {
6674 implementation ' com.facebook.react:react-native:+'
67- implementation ' androidx.appcompat:appcompat:1.4.2'
68- implementation ' com.google.android.material:material:1.4.0'
69- implementation ' androidx.constraintlayout:constraintlayout:2.1.4'
7075 implementation ' com.android.support:multidex:1.0.3'
71- implementation ' com.google.android.libraries.navigation:navigation:4.5.0'
72-
73- api " org.chromium.net:cronet-fallback:76.3809.111"
74- api " joda-time:joda-time:2.10.14"
75- api " com.google.android.datatransport:transport-api:3.0.0"
76- api " com.google.android.datatransport:transport-backend-cct:3.1.4"
77- api " com.google.android.datatransport:transport-runtime:3.1.4"
78- api ' com.github.bumptech.glide:glide:4.9.0'
79- api ' com.github.bumptech.glide:okhttp-integration:4.9.0'
80- api " androidx.mediarouter:mediarouter:1.3.0"
81- api ' com.google.guava:guava:31.0.1-android'
82-
76+ implementation ' com.google.android.libraries.navigation:navigation:5.2.3"
8377}
0 commit comments