mirror of
https://github.com/InsanusMokrassar/KotlinMultiplatformProjectTemplate.git
synced 2024-11-22 00:03:56 +00:00
update dependencies and add ModuleGenerator templates
This commit is contained in:
parent
488e4b283d
commit
ebc07f5c3d
4
.templates/README.md
Normal file
4
.templates/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Templates
|
||||||
|
|
||||||
|
This folder contains templates to generate your modules in Intellij Idea with plugin
|
||||||
|
[ModuleGenerator](https://plugins.jetbrains.com/plugin/21100-segment-generator)
|
5
.templates/mpp_android_module/ModuleGenerator.json
Normal file
5
.templates/mpp_android_module/ModuleGenerator.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"module_path": "feature/sample",
|
||||||
|
"module_package": "{{.module_path.replace(\"/\", \".\")}}",
|
||||||
|
"full_module_package": "project_group.{{.module_path.replace(\"/\", \".\")}}"
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
plugins {
|
||||||
|
id "org.jetbrains.kotlin.multiplatform"
|
||||||
|
id "org.jetbrains.kotlin.plugin.serialization"
|
||||||
|
id "com.android.library"
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$mppAndroidProjectPresetPath"
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
package {{.full_module_package}}
|
@ -0,0 +1 @@
|
|||||||
|
<manifest package="{{.full_module_package}}"/>
|
5
.templates/mpp_java_module/ModuleGenerator.json
Normal file
5
.templates/mpp_java_module/ModuleGenerator.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"module_path": "feature/sample",
|
||||||
|
"module_package": "{{.module_path.replace(\"/\", \".\")}}",
|
||||||
|
"full_module_package": "project_group.{{.module_path.replace(\"/\", \".\")}}"
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
plugins {
|
||||||
|
id "org.jetbrains.kotlin.multiplatform"
|
||||||
|
id "org.jetbrains.kotlin.plugin.serialization"
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$mppJavaProjectPresetPath"
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
package {{.full_module_package}}
|
@ -0,0 +1 @@
|
|||||||
|
package {{.full_module_package}}
|
5
.templates/mpp_js_module/ModuleGenerator.json
Normal file
5
.templates/mpp_js_module/ModuleGenerator.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"module_path": "feature/sample",
|
||||||
|
"module_package": "{{.module_path.replace(\"/\", \".\")}}",
|
||||||
|
"full_module_package": "project_group.{{.module_path.replace(\"/\", \".\")}}"
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
plugins {
|
||||||
|
id "org.jetbrains.kotlin.multiplatform"
|
||||||
|
id "org.jetbrains.kotlin.plugin.serialization"
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$mppJsProjectPresetPath"
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
package {{.full_module_package}}
|
@ -0,0 +1 @@
|
|||||||
|
package {{.full_module_package}}
|
5
.templates/mpp_module/ModuleGenerator.json
Normal file
5
.templates/mpp_module/ModuleGenerator.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"module_path": "feature/sample",
|
||||||
|
"module_package": "{{.module_path.replace(\"/\", \".\")}}",
|
||||||
|
"full_module_package": "project_group.{{.module_path.replace(\"/\", \".\")}}"
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
plugins {
|
||||||
|
id "org.jetbrains.kotlin.multiplatform"
|
||||||
|
id "org.jetbrains.kotlin.plugin.serialization"
|
||||||
|
id "com.android.library"
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$mppProjectWithSerializationPresetPath"
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
package {{.full_module_package}}
|
@ -0,0 +1 @@
|
|||||||
|
<manifest package="{{.full_module_package}}"/>
|
@ -1,6 +1,6 @@
|
|||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
kotlin = "1.8.20"
|
kotlin = "1.8.21"
|
||||||
kotlin-serialization = "1.5.0"
|
kotlin-serialization = "1.5.0"
|
||||||
|
|
||||||
dokka = "1.8.10"
|
dokka = "1.8.10"
|
||||||
@ -13,7 +13,7 @@ espresso_core = "3.4.0"
|
|||||||
android-gradle-plugin = "7.4.2"
|
android-gradle-plugin = "7.4.2"
|
||||||
android-minSdk = "21"
|
android-minSdk = "21"
|
||||||
android-compileSdk = "33"
|
android-compileSdk = "33"
|
||||||
android-buildTools = "33.0.1"
|
android-buildTools = "33.0.2"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
Loading…
Reference in New Issue
Block a user