@zerogpu/expo-android-sdk 0.0.2 → 0.1.0-dev.202607211357.g7b9afe1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ apply plugin: 'com.android.library'
4
4
  apply plugin: 'kotlin-android'
5
5
 
6
6
  group = 'ai.zerogpu.expo'
7
- version = '0.0.2'
7
+ version = '0.1.0'
8
8
 
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
10
10
  apply from: expoModulesCorePlugin
@@ -22,7 +22,27 @@ buildscript {
22
22
  // Single source of truth for the wrapped AAR version: the package.json this module
23
23
  // ships in. In a consumer app this resolves inside node_modules/@zerogpu/expo-android-sdk,
24
24
  // so the npm package and the AAR it pulls always match — no drift possible.
25
- def zeroGpuSdkVersion = new JsonSlurper().parse(file("../package.json")).version
25
+ //
26
+ // Release channels: official npm versions are plain X.Y.Z and map 1:1 to a Maven
27
+ // Central release. Development builds ship on npm as X.Y.Z-dev.<stamp>.<sha>
28
+ // (unique, immutable — installed only via the `dev` dist-tag) while the matching
29
+ // AAR is the mutable X.Y.Z-SNAPSHOT in the Central Portal snapshots repository,
30
+ // so the prerelease is mapped back to its SNAPSHOT coordinate here.
31
+ def zeroGpuNpmVersion = new JsonSlurper().parse(file("../package.json")).version
32
+ def zeroGpuDevMatch = zeroGpuNpmVersion =~ /^(\d+\.\d+\.\d+)-dev\..+$/
33
+ def zeroGpuSdkVersion = zeroGpuDevMatch ? "${zeroGpuDevMatch[0][1]}-SNAPSHOT" : zeroGpuNpmVersion
34
+
35
+ // Development builds only: make the snapshots repo visible, fenced so it can never
36
+ // serve anything but snapshots. Official installs never evaluate this block, so
37
+ // release consumers keep resolving exclusively from Maven Central.
38
+ if (zeroGpuSdkVersion.endsWith("-SNAPSHOT")) {
39
+ repositories {
40
+ maven {
41
+ url "https://central.sonatype.com/repository/maven-snapshots/"
42
+ mavenContent { snapshotsOnly() }
43
+ }
44
+ }
45
+ }
26
46
 
27
47
  android {
28
48
  namespace "ai.zerogpu.expo"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerogpu/expo-android-sdk",
3
- "version": "0.0.2",
3
+ "version": "0.1.0-dev.202607211357.g7b9afe1",
4
4
  "description": "Expo/React Native module that runs a ZeroGPU on-device inference node on Android by wrapping the native ai.zerogpu:android-sdk AAR.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "lint": "expo-module lint",
12
12
  "test": "expo-module test",
13
13
  "prepare": "npm run build && npm run build:plugin",
14
- "prepublishOnly": "npm run build && npm run build:plugin",
14
+ "prepublishOnly": "node scripts/ensure-publish-allowed.mjs && npm run build && npm run build:plugin",
15
15
  "expo-module": "expo-module"
16
16
  },
17
17
  "keywords": [
@@ -36,7 +36,8 @@
36
36
  "homepage": "https://github.com/zerogpu/zerogpu-android-sdk/tree/develop/expo-android-sdk",
37
37
  "publishConfig": {
38
38
  "access": "public",
39
- "registry": "https://registry.npmjs.org/"
39
+ "registry": "https://registry.npmjs.org/",
40
+ "tag": "dev"
40
41
  },
41
42
  "files": [
42
43
  "build",