diff --git a/exceptions/app/build.gradle b/exceptions/app/build.gradle index a3946131d..9c181d582 100644 --- a/exceptions/app/build.gradle +++ b/exceptions/app/build.gradle @@ -1,52 +1,30 @@ plugins { - id 'com.android.application' - id 'org.jetbrains.kotlin.android' + id "ndksamples.android.application" + id "ndksamples.android.kotlin" } android { namespace 'com.example.exceptions' - compileSdk 33 defaultConfig { applicationId "com.example.exceptions" - minSdk 21 - targetSdk 33 versionCode 1 versionName "1.0" - - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - kotlinOptions { - jvmTarget = '1.8' - } externalNativeBuild { cmake { path file('src/main/cpp/CMakeLists.txt') } } + buildFeatures { viewBinding true } } dependencies { - - implementation 'androidx.core:core-ktx:1.7.0' - implementation 'androidx.appcompat:appcompat:1.5.1' - implementation 'com.google.android.material:material:1.5.0' - implementation 'androidx.constraintlayout:constraintlayout:2.1.4' - testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.3' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + implementation libs.appcompat + implementation libs.material + implementation libs.androidx.constraintlayout } \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0c12d7450..67b988acd 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,6 +4,7 @@ kotlin = "1.7.21" junit = "4.13.2" junitVersion = "1.1.5" espressoCore = "3.5.1" +androidxConstraintLayout = "2.1.4" appcompat = "1.6.1" material = "1.12.0" jetbrainsKotlinJvm = "1.7.21" @@ -12,6 +13,7 @@ jetbrainsKotlinJvm = "1.7.21" junit = { group = "junit", name = "junit", version.ref = "junit" } ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } +androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "androidxConstraintLayout" } appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } material = { group = "com.google.android.material", name = "material", version.ref = "material" } kotlin-gradlePlugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }