group 'com.amazonaws.amplify.amplify_datastore' version '1.0-SNAPSHOT' buildscript { ext.kotlin_version = '1.7.10' repositories { mavenLocal() google() mavenCentral() maven { url 'https://plugins.gradle.org/m2/' } } dependencies { classpath 'com.android.tools.build:gradle:8.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'org.jlleitschuh.gradle:ktlint-gradle:11.5.0' } } rootProject.allprojects { repositories { mavenLocal() google() mavenCentral() } } apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'org.jlleitschuh.gradle.ktlint' android { compileSdkVersion 33 sourceSets { main.java.srcDirs += 'src/main/kotlin' test.java.srcDirs += 'src/test/kotlin' test.resources.srcDirs += '../test/resources' } defaultConfig { minSdkVersion 24 } lintOptions { disable 'InvalidPackage' disable 'AndroidGradlePluginVersion' informational 'GradleDependency' abortOnError true warningsAsErrors true checkTestSources true xmlReport false htmlReport false } compileOptions { // Support for Java 8 features coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } testOptions { unitTests { includeAndroidResources = true } } namespace 'com.amazonaws.amplify.amplify_datastore' } dependencies { // Support for Java 8 features coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3' implementation 'com.amplifyframework:aws-auth-cognito:2.11.1' implementation "com.amplifyframework:aws-api:2.11.1" implementation "com.amplifyframework:aws-datastore:2.11.1" implementation "com.amplifyframework:aws-api-appsync:2.11.1" implementation 'com.google.code.gson:gson:2.10.1' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1' testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:5.4.0' testImplementation 'org.mockito:mockito-inline:5.2.0' testImplementation 'androidx.test:core:1.5.0' testImplementation 'com.google.code.gson:gson:2.10.1' testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.2' // Tests must be updated if bumped //noinspection GradleDependency testImplementation 'org.robolectric:robolectric:4.3.1' testImplementation 'com.fasterxml.jackson.core:jackson-core:2.12.4' testImplementation 'com.fasterxml.jackson.core:jackson-annotations:2.12.4' testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.12.4' }