File tree 8 files changed +85
-12
lines changed
src/commonMain/kotlin/com/piasy/kmp/xlog
8 files changed +85
-12
lines changed Original file line number Diff line number Diff line change 1
1
object Consts {
2
2
const val releaseGroup = " com.piasy"
3
3
const val releaseName = " kmp-xlog"
4
- const val releaseVersion = " 1.3.4 "
4
+ const val releaseVersion = " 1.3.5 "
5
5
6
6
val androidNS = " $releaseGroup .${releaseName.replace(' -' , ' .' )} "
7
7
}
Original file line number Diff line number Diff line change @@ -13,7 +13,5 @@ targets:
13
13
CLANG_WARN_DOCUMENTATION_COMMENTS : " NO"
14
14
TARGETED_DEVICE_FAMILY : " 1,2"
15
15
ASSETCATALOG_COMPILER_APPICON_NAME : " AppIcon"
16
- ENABLE_BITCODE : " NO"
17
- DEVELOPMENT_TEAM : " 32VR5PEEGQ"
18
16
ONLY_ACTIVE_ARCH : " NO"
19
17
VALID_ARCHS : " arm64"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
22
22
styleMask: NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable | NSWindowStyleMaskResizable
23
23
backing: NSBackingStoreBuffered
24
24
defer: NO ];
25
- self.mainWindow .title = @" kmp-webrtc " ;
25
+ self.mainWindow .title = @" kmp-xlog " ;
26
26
27
27
self.viewController = [[ViewController alloc ] initWithNibName: nil bundle: nil ];
28
28
self.mainWindow .contentView = self.viewController .view ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ndk = "21.3.6528147"
5
5
compileSdk = " 35"
6
6
minSdk = " 21"
7
7
targetSdk = " 35"
8
- agp = " 8.8.0 "
8
+ agp = " 8.7.3 "
9
9
kotlin = " 2.1.0"
10
10
mockk = " 1.13.16"
11
11
compose = " 1.7.6"
Original file line number Diff line number Diff line change
1
+ import com.vanniktech.maven.publish.SonatypeHost
2
+
3
+ plugins {
4
+ alias(libs.plugins.kmp)
5
+ alias(libs.plugins.vanniktech.mavenPublish)
6
+ }
7
+
8
+ version = Consts .releaseVersion
9
+ group = Consts .releaseGroup
10
+
11
+ kotlin {
12
+ jvm()
13
+
14
+ iosArm64()
15
+ iosSimulatorArm64()
16
+ iosX64()
17
+ macosArm64()
18
+ macosX64()
19
+
20
+ js(IR ) {
21
+ browser {
22
+ }
23
+ binaries.executable()
24
+ }
25
+ @OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl ::class )
26
+ wasmJs {
27
+ browser {
28
+ }
29
+ binaries.executable()
30
+ }
31
+
32
+ linuxX64()
33
+ mingwX64()
34
+
35
+ applyDefaultHierarchyTemplate()
36
+ sourceSets {
37
+ commonMain {
38
+ dependencies {
39
+ implementation(libs.kotlinx.datetime)
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ mavenPublishing {
46
+ publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL )
47
+
48
+ signAllPublications()
49
+
50
+ coordinates(group.toString(), " kmp-xlog-api" , version.toString())
51
+
52
+ pom {
53
+ name = " kmp-xlog"
54
+ description = " KMP wrapper for tencent mars xlog."
55
+ inceptionYear = " 2022"
56
+ url = " https://github.com/HackWebRTC/kmp-xlog"
57
+ licenses {
58
+ license {
59
+ name = " MIT"
60
+ url = " https://opensource.org/licenses/MIT"
61
+ distribution = " https://opensource.org/licenses/MIT"
62
+ }
63
+ }
64
+ developers {
65
+ developer {
66
+ id = " Piasy"
67
+ name = " Piasy Xu"
68
+
69
+ }
70
+ }
71
+ scm {
72
+ url = " https://github.com/HackWebRTC/kmp-xlog"
73
+ connection = " scm:git:git://github.com/HackWebRTC/kmp-xlog.git"
74
+ developerConnection = " scm:git:git://github.com/HackWebRTC/kmp-xlog.git"
75
+ }
76
+ }
77
+ }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ object Logging {
26
26
}
27
27
}
28
28
29
- internal fun init (impl : LoggingImpl ) {
29
+ fun init (impl : LoggingImpl ) {
30
30
this .impl = impl
31
31
}
32
32
@@ -70,7 +70,7 @@ object Logging {
70
70
}
71
71
}
72
72
73
- internal interface LoggingImpl {
73
+ interface LoggingImpl {
74
74
fun debug (tag : String , content : String )
75
75
76
76
fun info (tag : String , content : String )
Original file line number Diff line number Diff line change @@ -53,16 +53,13 @@ kotlin {
53
53
}
54
54
binaries.executable()
55
55
}
56
+ @OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl ::class )
56
57
wasmJs {
57
58
browser {
58
59
}
59
60
binaries.executable()
60
61
}
61
62
62
- // to include them in the KotlinMultiplatform module when publishing
63
- linuxX64 {}
64
- mingwX64 {}
65
-
66
63
linuxX64 {
67
64
compilations.getByName(" main" ) {
68
65
cinterops {
@@ -201,7 +198,7 @@ kotlin {
201
198
202
199
commonMain {
203
200
dependencies {
204
- implementation(libs.kotlinx.datetime )
201
+ api(project( " :kmp-xlog-api " ) )
205
202
}
206
203
}
207
204
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ dependencyResolutionManagement {
15
15
}
16
16
17
17
rootProject.name = " kmp-xlog"
18
+ include(" :kmp-xlog-api" )
18
19
include(" :kmp-xlog" )
19
20
20
21
include(" :example:shared" )
You can’t perform that action at this time.
0 commit comments