diff --git a/.gitignore b/.gitignore index 108f9ce..51d0707 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,3 @@ sample/iosApp/iosApp.xcworkspace/* sample/iosApp/iosApp.xcodeproj/* !sample/iosApp/iosApp.xcodeproj/project.pbxproj shared/shared.podspec -gradle.properties diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..11215dc --- /dev/null +++ b/gradle.properties @@ -0,0 +1,22 @@ +#Gradle +org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M" + +#Kotlin +kotlin.code.style=official + +#MPP +kotlin.mpp.stability.nowarn=true +kotlin.mpp.enableCInteropCommonization=true +kotlin.mpp.androidSourceSetLayoutVersion=2 +kotlin.mpp.applyDefaultHierarchyTemplate=false + +#Compose +org.jetbrains.compose.experimental.uikit.enabled=true +org.jetbrains.compose.experimental.jscanvas.enabled=true +org.jetbrains.compose.experimental.wasm.enabled=true + +#Android +android.useAndroidX=true +android.compileSdk=34 +android.targetSdk=34 +android.minSdk=24 \ No newline at end of file diff --git a/sample/androidApp/build.gradle.kts b/sample/androidApp/build.gradle.kts index 985e9f7..99845c7 100644 --- a/sample/androidApp/build.gradle.kts +++ b/sample/androidApp/build.gradle.kts @@ -16,15 +16,15 @@ kotlin { } android { - compileSdk = (findProperty("android.compileSdk") as String).toInt() + compileSdk = libs.versions.android.compileSdk.get().toInt() namespace = "com.myapplication" sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml") defaultConfig { applicationId = "com.myapplication.MyApplication" - minSdk = (findProperty("android.minSdk") as String).toInt() - targetSdk = (findProperty("android.targetSdk") as String).toInt() + minSdk = libs.versions.android.minSdk.get().toInt() + targetSdk = libs.versions.android.targetSdk.get().toInt() versionCode = 1 versionName = "1.0" }