Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v1.4.4
with:
java-version: 11
java-version: 17
- name: Checkout source
uses: actions/checkout@v4
- name: Cache build deps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v1.4.4
with:
java-version: 11
java-version: 17
- name: Checkout source
uses: actions/checkout@v4
- name: Cache build deps
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v1.4.4
with:
java-version: 11
java-version: 17
- name: Checkout source
uses: actions/checkout@v4
- name: Cache build deps
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v1.4.4
with:
java-version: 11
java-version: 17
- name: Cache build deps
uses: actions/cache@v2
with:
Expand Down
46 changes: 16 additions & 30 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
import org.apache.tools.ant.taskdefs.condition.Os
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget

Expand All @@ -10,17 +9,12 @@ allprojects {
}
}

buildscript {
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10")
}
}

plugins {
id("org.jetbrains.kotlin.multiplatform")
alias(libs.plugins.kotlin.multiplatform)
`maven-publish`
id("org.jetbrains.kotlin.plugin.serialization")
id("com.android.library")
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.android.library)
}

publishing {
Expand All @@ -39,7 +33,7 @@ publishing {
android {
namespace = project.group.toString()
compileSdk = 33
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
namespace = "io.rebble.libpebblecommon"
defaultConfig {
minSdk = 21
targetSdk = compileSdk
Expand Down Expand Up @@ -84,14 +78,7 @@ kotlin {
}
}
}

val klockVersion = "2.4.13"
val ktorVersion = "1.6.7"
val coroutinesVersion = "1.8.0"
val uuidVersion = "0.4.1"
val kotlinxSerVersion = "1.5.0"
val kermitVersion = "2.0.0-RC4"


sourceSets {
all {
languageSettings {
Expand All @@ -102,16 +89,15 @@ kotlin {
}
}
sourceSets["commonMain"].dependencies {
implementation(kotlin("stdlib-common"))
implementation("com.benasher44:uuid:$uuidVersion")
implementation("com.soywiz.korlibs.klock:klock:$klockVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxSerVersion")
implementation("co.touchlab:kermit:$kermitVersion")
implementation(libs.uuid)
implementation(libs.klock)
implementation(libs.coroutines)
implementation(libs.serialization)
implementation(libs.kermit)
}

sourceSets["commonTest"].dependencies {
implementation(kotlin("test"))
implementation(libs.kotlin.test)
}

sourceSets["androidMain"].dependencies {
Expand All @@ -132,11 +118,11 @@ kotlin {
}

sourceSets["jvmTest"].dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
implementation("io.ktor:ktor-client-websockets:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
implementation(libs.kotlin.test)
implementation(libs.kotlin.test.junit)
implementation(libs.ktor.websockets)
implementation(libs.ktor.cio)
implementation(libs.ktor.okhttp)
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ org.gradle.jvmargs=-Xms128M -Xmx1G -XX:ReservedCodeCacheSize=200M
kotlin.native.binary.memoryModel=experimental
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlinVersion=2.0.0
agpVersion=7.4.0
android.disableAutomaticComponentCreation=true
agpVersion=8.1.4
27 changes: 27 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[versions]
agp = "8.1.4"
kotlin = "2.0.0"
klock = "2.4.13"
ktor = "1.6.7"
coroutine = "1.8.0"
uuid = "0.4.1"
serialization = "1.5.0"
kermit = "2.0.0-RC4"

[plugins]
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
android-library = { id = "com.android.library", version.ref = "agp" }

[libraries]
uuid = { module = "com.benasher44:uuid", version.ref = "uuid" }
klock = { module = "com.soywiz.korlibs.klock:klock", version.ref = "klock" }
coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutine" }
serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization" }
kermit = { module = "co.touchlab:kermit", version.ref = "kermit" }
ktor-websockets = { module = "io.ktor:ktor-client-websockets", version.ref = "ktor" }
ktor-cio = { module = "io.ktor:ktor-client-cio", version.ref = "ktor" }
ktor-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Sun Apr 23 00:52:13 BST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
41 changes: 28 additions & 13 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ pluginManagement {
gradlePluginPortal()
maven { url = uri("https://jitpack.io") }
}

val kotlinVersion: String by settings
val agpVersion: String by settings

plugins {
id("org.jetbrains.kotlin.multiplatform") version kotlinVersion
`maven-publish`
id("org.jetbrains.kotlin.plugin.serialization") version kotlinVersion
id("com.android.library") version agpVersion
}
}

rootProject.name = "libpebblecommon"
1 change: 0 additions & 1 deletion src/androidMain/AndroidManifest.xml

This file was deleted.