From e4a3bfd9972ce52041b0827e1765cb030a4f95d4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 17:47:31 +0000 Subject: [PATCH 1/2] Initial plan From 95ec1ae4717199af928cb4cf7f6e6fabbeb63916 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 17:50:04 +0000 Subject: [PATCH 2/2] Remove duplicate kotlin/lib build module Co-authored-by: paolodamico <5864173+paolodamico@users.noreply.github.com> --- kotlin/lib/.gitignore | 2 - kotlin/lib/build.gradle.kts | 97 -------------------------- kotlin/lib/consumer-rules.pro | 0 kotlin/lib/src/main/jniLibs/.gitignore | 2 - 4 files changed, 101 deletions(-) delete mode 100644 kotlin/lib/.gitignore delete mode 100644 kotlin/lib/build.gradle.kts delete mode 100644 kotlin/lib/consumer-rules.pro delete mode 100644 kotlin/lib/src/main/jniLibs/.gitignore diff --git a/kotlin/lib/.gitignore b/kotlin/lib/.gitignore deleted file mode 100644 index dc7bdfe18..000000000 --- a/kotlin/lib/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/build -/src/main/java/uniffi/ diff --git a/kotlin/lib/build.gradle.kts b/kotlin/lib/build.gradle.kts deleted file mode 100644 index 734522be3..000000000 --- a/kotlin/lib/build.gradle.kts +++ /dev/null @@ -1,97 +0,0 @@ -import java.io.ByteArrayOutputStream - -plugins { - id("com.android.library") - id("org.jetbrains.kotlin.android") - id("maven-publish") -} - -android { - namespace = "org.world.walletkit" - compileSdk = 35 - - defaultConfig { - minSdk = 23 - - testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" - consumerProguardFiles("consumer-rules.pro") - } - - // TODO: Review - // buildTypes { - // getByName("release") { - // isMinifyEnabled = false - // proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") - // } - // } - - compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - } - - kotlinOptions { - jvmTarget = "1.8" - } - - publishing { - singleVariant("release") { - withSourcesJar() - } - } -} - -afterEvaluate { - publishing { - publications { - create("maven") { - groupId = "org.world" - artifactId = "walletkit" - - version = if (project.hasProperty("versionName")) { - project.property("versionName") as String - } else { - val stdout = ByteArrayOutputStream() - project.exec { - commandLine = listOf( - "curl", "-s", "-H", - "Authorization: token ${System.getenv("GITHUB_TOKEN")}", - "https://api.github.com/repos/worldcoin/walletkit/releases/latest" - ) - standardOutput = stdout - } - val response = stdout.toString() - val tag = Regex("\"tag_name\":\\s*\"(.*?)\"") - .find(response)?.groupValues?.get(1) ?: "0.0.0" - "$tag" - } - - afterEvaluate { - from(components["release"]) - } - } - } - repositories { - maven { - name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/worldcoin/walletkit") - credentials { - username = System.getenv("GITHUB_ACTOR") - password = System.getenv("GITHUB_TOKEN") - } - } - } - } -} - -dependencies { - implementation("net.java.dev.jna:jna:5.13.0@aar") - implementation("androidx.core:core-ktx:1.8.0") - implementation("androidx.appcompat:appcompat:1.4.1") - implementation("com.google.android.material:material:1.5.0") - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3") - - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") -} diff --git a/kotlin/lib/consumer-rules.pro b/kotlin/lib/consumer-rules.pro deleted file mode 100644 index e69de29bb..000000000 diff --git a/kotlin/lib/src/main/jniLibs/.gitignore b/kotlin/lib/src/main/jniLibs/.gitignore deleted file mode 100644 index d6b7ef32c..000000000 --- a/kotlin/lib/src/main/jniLibs/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore