simplejsble 0.0.35 → 0.0.36
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.
- package/NitroSimplejsble.podspec +2 -2
- package/apple/SimpleBLE.xcframework/Info.plist +4 -4
- package/apple/SimpleBLE.xcframework/ios-arm64/libsimpleble.a +0 -0
- package/apple/SimpleBLE.xcframework/ios-arm64-simulator/libsimpleble.a +0 -0
- package/apple/SimpleBLE.xcframework/macos-arm64_x86_64/libsimpleble.a +0 -0
- package/package.json +1 -1
- package/android/SIMPLEDROIDBRIDGE_INTEGRATION.md +0 -77
package/NitroSimplejsble.podspec
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<key>HeadersPath</key>
|
|
11
11
|
<string>Headers</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-arm64</string>
|
|
13
|
+
<string>ios-arm64-simulator</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>libsimpleble.a</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
</array>
|
|
20
20
|
<key>SupportedPlatform</key>
|
|
21
21
|
<string>ios</string>
|
|
22
|
+
<key>SupportedPlatformVariant</key>
|
|
23
|
+
<string>simulator</string>
|
|
22
24
|
</dict>
|
|
23
25
|
<dict>
|
|
24
26
|
<key>BinaryPath</key>
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
<key>HeadersPath</key>
|
|
44
46
|
<string>Headers</string>
|
|
45
47
|
<key>LibraryIdentifier</key>
|
|
46
|
-
<string>ios-arm64
|
|
48
|
+
<string>ios-arm64</string>
|
|
47
49
|
<key>LibraryPath</key>
|
|
48
50
|
<string>libsimpleble.a</string>
|
|
49
51
|
<key>SupportedArchitectures</key>
|
|
@@ -52,8 +54,6 @@
|
|
|
52
54
|
</array>
|
|
53
55
|
<key>SupportedPlatform</key>
|
|
54
56
|
<string>ios</string>
|
|
55
|
-
<key>SupportedPlatformVariant</key>
|
|
56
|
-
<string>simulator</string>
|
|
57
57
|
</dict>
|
|
58
58
|
</array>
|
|
59
59
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# SimpleDroidBridge Integration Decision
|
|
2
|
-
|
|
3
|
-
## Current Approach
|
|
4
|
-
|
|
5
|
-
In `build.gradle`, the simpledroidbridge Java sources are included directly:
|
|
6
|
-
|
|
7
|
-
```gradle
|
|
8
|
-
sourceSets {
|
|
9
|
-
main {
|
|
10
|
-
java.srcDirs += ["../simpledroidbridge/src/main/java"]
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Why Not Use `implementation project(":simpledroidbridge")`?
|
|
16
|
-
|
|
17
|
-
### Option 1: `java.srcDirs` (Current)
|
|
18
|
-
|
|
19
|
-
Compiles simpledroidbridge sources directly into the main library.
|
|
20
|
-
|
|
21
|
-
**Pros:**
|
|
22
|
-
- No configuration needed in consumer app
|
|
23
|
-
- Works seamlessly in npm package context
|
|
24
|
-
- No build config conflicts
|
|
25
|
-
- React Native autolinking works out of the box
|
|
26
|
-
|
|
27
|
-
**Cons:**
|
|
28
|
-
- Sources compiled together (single output)
|
|
29
|
-
|
|
30
|
-
### Option 2: `implementation project(":simpledroidbridge")`
|
|
31
|
-
|
|
32
|
-
Would treat simpledroidbridge as a separate Gradle module dependency.
|
|
33
|
-
|
|
34
|
-
**Pros:**
|
|
35
|
-
- Cleaner separation of modules
|
|
36
|
-
- Could be reused independently
|
|
37
|
-
|
|
38
|
-
**Cons:**
|
|
39
|
-
- Requires consumer app's `settings.gradle.kts` to include:
|
|
40
|
-
```kotlin
|
|
41
|
-
include(":simpledroidbridge")
|
|
42
|
-
project(":simpledroidbridge").projectDir = File("node_modules/simplejsble/simpledroidbridge")
|
|
43
|
-
```
|
|
44
|
-
- `simpledroidbridge/build.gradle.kts` has its own SDK versions (`compileSdk = 31`, `minSdk = 31`) which may conflict with consumer apps
|
|
45
|
-
- React Native autolinking doesn't handle transitive local project dependencies
|
|
46
|
-
- Complex path resolution for npm packages
|
|
47
|
-
|
|
48
|
-
## Comparison
|
|
49
|
-
|
|
50
|
-
| Aspect | `java.srcDirs` | `project(":simpledroidbridge")` |
|
|
51
|
-
|--------|----------------|--------------------------------|
|
|
52
|
-
| Consumer setup | None required | Must modify settings.gradle |
|
|
53
|
-
| Build config conflicts | None | Possible SDK version conflicts |
|
|
54
|
-
| npm package compatibility | Works out of the box | Complex path resolution |
|
|
55
|
-
| Autolinking | Works | Not supported |
|
|
56
|
-
|
|
57
|
-
## Conclusion
|
|
58
|
-
|
|
59
|
-
The `java.srcDirs` approach is the right choice for npm package distribution. Converting to a project dependency would add unnecessary friction for package consumers.
|
|
60
|
-
|
|
61
|
-
## Package Structure
|
|
62
|
-
|
|
63
|
-
The npm package bundles simpledroidbridge (defined in `package.json`):
|
|
64
|
-
|
|
65
|
-
```json
|
|
66
|
-
{
|
|
67
|
-
"files": [
|
|
68
|
-
"android/",
|
|
69
|
-
"simpledroidbridge/",
|
|
70
|
-
...
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
This allows the relative path `../simpledroidbridge/src/main/java` to work correctly from the `android/` folder in both:
|
|
76
|
-
- Monorepo development
|
|
77
|
-
- npm package installation (`node_modules/simplejsble/`)
|