Skip to content

Commit e76a3e6

Browse files
committed
Project structure for the migration examples
1 parent e2998fc commit e76a3e6

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'de.mannodermaus.android-junit5'
4+
id 'org.jetbrains.kotlin.android'
5+
}
6+
7+
android {
8+
namespace = 'com.github.neboskreb.log4j2.examples.migration'
9+
compileSdk = 36
10+
11+
defaultConfig {
12+
applicationId "com.github.neboskreb.log4j2.examples.migration"
13+
minSdk = 26
14+
targetSdk = 36
15+
versionCode 1
16+
versionName "1.0"
17+
18+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19+
}
20+
21+
buildTypes {
22+
release {
23+
minifyEnabled false
24+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
25+
signingConfig = signingConfigs.debug
26+
}
27+
}
28+
29+
compileOptions {
30+
sourceCompatibility JavaVersion.VERSION_17
31+
targetCompatibility JavaVersion.VERSION_17
32+
}
33+
34+
dataBinding {
35+
enable = true
36+
}
37+
38+
packagingOptions {
39+
exclude 'META-INF/DEPENDENCIES'
40+
exclude 'META-INF/LICENSE*'
41+
}
42+
kotlinOptions {
43+
jvmTarget = '17'
44+
}
45+
}
46+
47+
dependencies {
48+
implementation(project(":examples:migration-lib"))
49+
implementation 'androidx.core:core-ktx:1.17.0'
50+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
plugins {
2+
id 'com.android.library'
3+
id 'de.mannodermaus.android-junit5'
4+
id 'org.jetbrains.kotlin.android'
5+
}
6+
7+
android {
8+
namespace = 'com.github.neboskreb.log4j2.examples.migration.lib'
9+
compileSdk = 36
10+
11+
defaultConfig {
12+
minSdk = 26
13+
14+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15+
consumerProguardFiles "consumer-rules.pro"
16+
}
17+
18+
buildTypes {
19+
release {
20+
minifyEnabled false
21+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
22+
}
23+
}
24+
25+
packagingOptions {
26+
exclude 'META-INF/DEPENDENCIES'
27+
}
28+
29+
compileOptions {
30+
sourceCompatibility JavaVersion.VERSION_17
31+
targetCompatibility JavaVersion.VERSION_17
32+
}
33+
kotlinOptions {
34+
jvmTarget = '17'
35+
}
36+
}
37+
38+
dependencies {
39+
implementation 'androidx.core:core-ktx:1.17.0'
40+
41+
42+
testImplementation platform('org.junit:junit-bom:5.12.2')
43+
testImplementation 'org.junit.jupiter:junit-jupiter-api'
44+
testImplementation 'org.junit.jupiter:junit-jupiter'
45+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
46+
47+
48+
androidTestImplementation platform('org.junit:junit-bom:5.12.2')
49+
androidTestImplementation 'org.junit.jupiter:junit-jupiter-api'
50+
androidTestImplementation 'org.junit.jupiter:junit-jupiter'
51+
androidTestImplementation 'org.junit.platform:junit-platform-launcher'
52+
}

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ include ':junit5'
2929
include ':migration'
3030
include ':examples:app'
3131
include ':examples:lib'
32+
include ':examples:migration-app'
33+
include ':examples:migration-lib'

0 commit comments

Comments
 (0)