Skip to content

Commit

Permalink
Migrate exceptions to convention plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanAlbert committed May 9, 2024
1 parent a4b082d commit e405ba1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
34 changes: 6 additions & 28 deletions exceptions/app/build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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" }
Expand Down

0 comments on commit e405ba1

Please sign in to comment.