File tree Expand file tree Collapse file tree
shared/src/commonMain/kotlin/com/piasy/kmp/socketio/example Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ kotlin {
3737## Usage
3838
3939``` kotlin
40- IO .socket(" http://localhost:3000" , IO .Options ()) { socket ->
40+ val opt = IO .Options ()
41+ // opt.trustAllCerts = true
42+ IO .socket(" http://localhost:3000" , opt) { socket ->
4143 socket.on(Socket .EVENT_CONNECT ) { args ->
4244 println (" on connect ${args.joinToString()} " )
4345
@@ -156,6 +158,7 @@ Maven central portal credentials and signing configs are set in `~/.gradle/gradl
156158# on macOS: need manual release on website
157159./gradlew clean \
158160 publishKotlinMultiplatformPublicationToMavenCentralRepository \
161+ publishAndroidReleasePublicationToMavenCentralRepository \
159162 publishJvmPublicationToMavenCentralRepository \
160163 publishIosArm64PublicationToMavenCentralRepository \
161164 publishIosSimulatorArm64PublicationToMavenCentralRepository \
Original file line number Diff line number Diff line change 11object Consts {
22 const val releaseGroup = " com.piasy"
33 const val releaseName = " kmp-socketio"
4- const val releaseVersion = " 1.4.0 "
4+ const val releaseVersion = " 1.4.1 "
55
66 val androidNS = " $releaseGroup .${releaseName.replace(' -' , ' .' )} "
77}
Original file line number Diff line number Diff line change 66 <application
77 android : allowBackup =" false"
88 android : supportsRtl =" true"
9+ android : usesCleartextTraffic =" true"
910 android : theme =" @style/AppTheme" >
1011 <activity
1112 android : name =" .MainActivity"
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ import kotlinx.io.bytestring.unsafe.UnsafeByteStringOperations
1010class Greeting {
1111 @OptIn(UnsafeByteStringApi ::class )
1212 fun greet () {
13- IO .socket(" http://172.16.11.186:3000" , IO .Options ()) { socket ->
13+ val opt = IO .Options ()
14+ // opt.trustAllCerts = true
15+ IO .socket(" http://172.16.11.186:3000" , opt) { socket ->
1416 socket.on(Socket .EVENT_CONNECT ) { args ->
1517 println (" Greeting on connect ${args.joinToString()} " )
1618
Original file line number Diff line number Diff line change @@ -23,11 +23,18 @@ android {
2323 sourceCompatibility = JavaVersion .toVersion(libs.versions.jvm.get().toInt())
2424 targetCompatibility = JavaVersion .toVersion(libs.versions.jvm.get().toInt())
2525 }
26+ testOptions {
27+ unitTests.all {
28+ it.failOnNoDiscoveredTests = false
29+ }
30+ }
2631}
2732
2833kotlin {
2934 jvm()
30- androidTarget()
35+ androidTarget {
36+ publishLibraryVariants(" release" )
37+ }
3138
3239 iosArm64()
3340 iosSimulatorArm64()
You can’t perform that action at this time.
0 commit comments