Skip to content

Commit 3405eb6

Browse files
fix missing Android files
1 parent fe71006 commit 3405eb6

File tree

8 files changed

+10
-48
lines changed

8 files changed

+10
-48
lines changed

.changeset/breezy-carrots-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/capacitor': patch
3+
---
4+
5+
[Android] Fixed missing CMakeLists file error.

demos/example-capacitor/ios/App/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PODS:
99
- CapacitorSplashScreen (7.0.3):
1010
- Capacitor
1111
- powersync-sqlite-core (0.4.8)
12-
- PowersyncCapacitor (0.0.1):
12+
- PowersyncCapacitor (0.1.0):
1313
- Capacitor
1414
- powersync-sqlite-core (~> 0.4.6)
1515
- SQLCipher (~> 4.0)
@@ -51,7 +51,7 @@ SPEC CHECKSUMS:
5151
CapacitorCordova: 435121e81a2df4d0034f0fb11fcefab5104cfdb5
5252
CapacitorSplashScreen: d06ae8804808e9f649a08e7bb7f283c77b688084
5353
powersync-sqlite-core: f48d06a7a9e6f73fee5bbc74da542466be2bb06f
54-
PowersyncCapacitor: d7dcf7f15e24b512571dc87f545855f936ef9537
54+
PowersyncCapacitor: 9c39e1aec5125bdea55fa61e8277e4a3b16853d2
5555
SQLCipher: eb79c64049cb002b4e9fcb30edb7979bf4706dfc
5656
ZIPFoundation: dfd3d681c4053ff7e2f7350bc4e53b5dba3f5351
5757

packages/capacitor/android/CMakeLists.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/capacitor/android/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ android {
2929
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3030
}
3131

32-
externalNativeBuild {
33-
cmake {
34-
path "CMakeLists.txt"
35-
}
36-
}
37-
3832
buildFeatures {
3933
prefab true
4034
}

packages/capacitor/android/src/main/cpp/powersync_capacitor_jni.c

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package com.powersync.capacitor;
22

33
public class PowerSync {
4-
static {
5-
System.loadLibrary("powersync_capacitor");
6-
}
7-
84
public static native int registerPowersync();
95
}

packages/capacitor/android/src/main/java/com/powersync/capacitor/PowerSyncPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public class PowerSyncPlugin extends Plugin {
1414
@PluginMethod
1515
public void registerCore(PluginCall call) {
1616
JSObject ret = new JSObject();
17-
ret.put("responseCode", implementation.registerPowersync());
17+
// For Android we don't statically register the library, so we always return 0
18+
ret.put("responseCode", 0);
1819
call.resolve(ret);
1920
}
2021
}

packages/capacitor/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"files": [
1414
"android/src/main/",
1515
"android/build.gradle",
16+
"android/proguard-rules.pro",
1617
"dist/",
1718
"ios/Sources",
1819
"ios/Tests",

0 commit comments

Comments
 (0)