diff --git a/Android/app/build.gradle b/Android/app/build.gradle deleted file mode 100644 index f14a3fa..0000000 --- a/Android/app/build.gradle +++ /dev/null @@ -1,81 +0,0 @@ -plugins { - id 'com.android.application' - id 'org.jetbrains.kotlin.android' -} - -android { - namespace 'com.example.simple_counter' - compileSdk 34 - - defaultConfig { - applicationId "com.example.simple_counter" - minSdk 33 - targetSdk 34 - versionCode 1 - versionName "1.0" - - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - vectorDrawables { - useSupportLibrary true - } - } - - 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' - } - buildFeatures { - compose true - } - composeOptions { - kotlinCompilerExtensionVersion '1.5.3' - } - packagingOptions { - resources { - excludes += '/META-INF/*' - } - } -} - -dependencies { - // our shared library - implementation project(path: ':shared') - - def composeBom = platform('androidx.compose:compose-bom:2024.06.00') - implementation composeBom - androidTestImplementation composeBom - - implementation 'androidx.compose.material3:material3:1.2.1' - - // Optional - Integration with ViewModels - implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.2") - // Optional - Integration with LiveData - implementation("androidx.compose.runtime:runtime-livedata") - - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3' - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3' - - implementation 'androidx.core:core-ktx:1.13.1' - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.2' - implementation 'androidx.activity:activity-compose:1.9.0' - implementation "androidx.compose.ui:ui:1.6.8" - implementation "androidx.compose.ui:ui-tooling-preview:1.6.8" - testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.2.1' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' - androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.6.8" - debugImplementation "androidx.compose.ui:ui-tooling:1.6.8" - debugImplementation "androidx.compose.ui:ui-test-manifest:1.6.8" -} diff --git a/Android/app/build.gradle.kts b/Android/app/build.gradle.kts new file mode 100644 index 0000000..e50857e --- /dev/null +++ b/Android/app/build.gradle.kts @@ -0,0 +1,82 @@ +plugins { + id("com.android.application") + id("org.jetbrains.kotlin.android") +} + +android { + namespace = "com.example.simple_counter" + compileSdk = 34 + + defaultConfig { + applicationId = "com.example.simple_counter" + minSdk = 33 + targetSdk = 34 + versionCode = 1 + versionName = "1.0" + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + vectorDrawables { + useSupportLibrary = true + } + } + + buildTypes { + release { + isMinifyEnabled = 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" + } + buildFeatures { + compose = true + } + composeOptions { + kotlinCompilerExtensionVersion = "1.5.3" + } + packagingOptions { + resources { + excludes += "/META-INF/*" + } + } +} + +dependencies { + // our shared library + implementation(project(path = ":shared")) + + + val composeBom = platform("androidx.compose:compose-bom:2024.06.00") + implementation(composeBom) + androidTestImplementation(composeBom) + + implementation("androidx.compose.material3:material3:1.2.1") + + // Optional - Integration with ViewModels + implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.2") + // Optional - Integration with LiveData + implementation("androidx.compose.runtime:runtime-livedata") + + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3") + + implementation("androidx.core:core-ktx:1.13.1") + implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.2") + implementation("androidx.activity:activity-compose:1.9.0") + implementation("androidx.compose.ui:ui:1.6.8") + implementation("androidx.compose.ui:ui-tooling-preview:1.6.8") + testImplementation("junit:junit:4.13.2") + androidTestImplementation("androidx.test.ext:junit:1.2.1") + androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1") + androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.6.8") + debugImplementation("androidx.compose.ui:ui-tooling:1.6.8") + debugImplementation("androidx.compose.ui:ui-test-manifest:1.6.8") +}