Skip to content

Commit 73a1c60

Browse files
committed
Initial implementation
1 parent 61f25ff commit 73a1c60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+4862
-277
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
!/.idea/inspectionProfiles/
77
!/.idea/inspectionProfiles/**
88
!/.idea/.gitignore
9+
!/.idea/compiler.xml
10+
!/.idea/kotlinc.xml
911

1012
# Gradle exclude paths
1113
/.gradle/

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Project exclude paths
2-
/build/
2+
/build/
3+
**/resources/mainSourceSet.path

api/build.gradle.kts

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,48 @@
1-
plugins { kotlin }
1+
publication.data.artifactId = rootProject.name + "-" + project.name
22

3-
dependencies {
4-
implementationOf(
5-
"com.meowool.toolkit:sweekt:_"
6-
)
3+
plugins {
4+
// id(Plugins.Meowool.Sweekt)
5+
}
6+
7+
androidLib()
8+
9+
configurations.all {
10+
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
11+
}
12+
13+
commonTarget {
14+
test.dependencies {
15+
implementationOf(
16+
Libs.Junit.Junit4.Runner,
17+
Libs.Kotest.Assertions.Core,
18+
)
19+
}
20+
}
21+
22+
jvmTarget {
23+
configureTestRunTask {
24+
useJUnitPlatform()
25+
}
26+
}
27+
28+
androidTarget {
29+
main.dependsOn(jvmMainSourceSet)
30+
main.dependencies {
31+
compileOnlyOf(
32+
Libs.AndroidX.Appcompat,
33+
Libs.AndroidX.Core.Ktx,
34+
Libs.AndroidX.Activity.Ktx,
35+
Libs.AndroidX.Fragment.Ktx,
36+
)
37+
}
38+
}
39+
40+
afterEvaluate {
41+
mapOf(
42+
jvmMainSourceSet to "jvm.src",
43+
androidMainSourceSet to "android.src",
44+
).forEach { (mainSourceSet, file) ->
45+
// Save the path of the main source set
46+
ext.set(file, mainSourceSet.kotlin.srcDirs.first { it.exists() }.absolutePath)
47+
}
748
}

api/generator/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Project exclude paths
2+
/build/

api/generator/.skip-publisher

Whitespace-only changes.

api/generator/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.meowool.cloak" />

0 commit comments

Comments
 (0)