@capacitor-community/bluetooth-le 7.3.0 → 8.0.0
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/CapacitorCommunityBluetoothLe.podspec +2 -2
- package/Package.swift +28 -0
- package/README.md +2 -1
- package/android/build.gradle +17 -12
- package/dist/esm/bleClient.d.ts +278 -278
- package/dist/esm/bleClient.js +361 -361
- package/dist/esm/bleClient.js.map +1 -1
- package/dist/esm/config.d.ts +53 -53
- package/dist/esm/config.js +2 -2
- package/dist/esm/conversion.d.ts +56 -46
- package/dist/esm/conversion.js +134 -117
- package/dist/esm/conversion.js.map +1 -1
- package/dist/esm/definitions.d.ts +352 -352
- package/dist/esm/definitions.js +42 -42
- package/dist/esm/index.d.ts +5 -5
- package/dist/esm/index.js +5 -5
- package/dist/esm/plugin.d.ts +2 -2
- package/dist/esm/plugin.js +4 -4
- package/dist/esm/queue.d.ts +3 -3
- package/dist/esm/queue.js +17 -17
- package/dist/esm/queue.js.map +1 -1
- package/dist/esm/timeout.d.ts +1 -1
- package/dist/esm/timeout.js +9 -9
- package/dist/esm/validators.d.ts +1 -1
- package/dist/esm/validators.js +11 -11
- package/dist/esm/validators.js.map +1 -1
- package/dist/esm/web.d.ts +57 -57
- package/dist/esm/web.js +403 -403
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +965 -947
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +965 -947
- package/dist/plugin.js.map +1 -1
- package/ios/{Plugin → Sources/BluetoothLe}/DeviceListView.swift +1 -1
- package/ios/{Plugin → Sources/BluetoothLe}/DeviceManager.swift +1 -0
- package/ios/{Plugin → Sources/BluetoothLe}/Plugin.swift +39 -1
- package/ios/{Plugin → Sources/BluetoothLe}/ThreadSafeDictionary.swift +2 -0
- package/ios/Tests/BluetoothLeTests/ConversionTests.swift +55 -0
- package/ios/Tests/BluetoothLeTests/PluginTests.swift +27 -0
- package/package.json +18 -14
- package/ios/Plugin/Info.plist +0 -24
- package/ios/Plugin/Plugin.h +0 -10
- package/ios/Plugin/Plugin.m +0 -41
- /package/ios/{Plugin → Sources/BluetoothLe}/Conversion.swift +0 -0
- /package/ios/{Plugin → Sources/BluetoothLe}/Device.swift +0 -0
- /package/ios/{Plugin → Sources/BluetoothLe}/Logging.swift +0 -0
|
@@ -10,8 +10,8 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.homepage = package['repository']['url']
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
|
-
s.source_files = 'ios/
|
|
14
|
-
s.ios.deployment_target = '
|
|
13
|
+
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
+
s.ios.deployment_target = '15.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.swift_version = '5.1'
|
|
17
17
|
end
|
package/Package.swift
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// swift-tools-version: 5.9
|
|
2
|
+
import PackageDescription
|
|
3
|
+
|
|
4
|
+
let package = Package(
|
|
5
|
+
name: "CapacitorCommunityBluetoothLe",
|
|
6
|
+
platforms: [.iOS(.v15)],
|
|
7
|
+
products: [
|
|
8
|
+
.library(
|
|
9
|
+
name: "CapacitorCommunityBluetoothLe",
|
|
10
|
+
targets: ["BluetoothLe"])
|
|
11
|
+
],
|
|
12
|
+
dependencies: [
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
|
|
14
|
+
],
|
|
15
|
+
targets: [
|
|
16
|
+
.target(
|
|
17
|
+
name: "BluetoothLe",
|
|
18
|
+
dependencies: [
|
|
19
|
+
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
|
20
|
+
.product(name: "Cordova", package: "capacitor-swift-pm")
|
|
21
|
+
],
|
|
22
|
+
path: "ios/Sources/BluetoothLe"),
|
|
23
|
+
.testTarget(
|
|
24
|
+
name: "BluetoothLeTests",
|
|
25
|
+
dependencies: ["BluetoothLe"],
|
|
26
|
+
path: "ios/Tests/BluetoothLeTests")
|
|
27
|
+
]
|
|
28
|
+
)
|
package/README.md
CHANGED
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
|
|
29
29
|
| Plugin | Capacitor | Documentation |
|
|
30
30
|
| ------ | --------- | --------------------------------------------------------------------------------- |
|
|
31
|
-
|
|
|
31
|
+
| 8.x | 8.x | [README](https://github.com/capacitor-community/bluetooth-le/blob/main/README.md) |
|
|
32
|
+
| 7.x | 7.x | [README](https://github.com/capacitor-community/bluetooth-le/blob/7.x/README.md) |
|
|
32
33
|
| 6.x | 6.x | [README](https://github.com/capacitor-community/bluetooth-le/blob/6.x/README.md) |
|
|
33
34
|
| 3.x | 5.x | [README](https://github.com/capacitor-community/bluetooth-le/blob/3.x/README.md) |
|
|
34
35
|
| 2.x | 4.x | [README](https://github.com/capacitor-community/bluetooth-le/blob/2.x/README.md) |
|
package/android/build.gradle
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
2
|
+
|
|
1
3
|
ext {
|
|
2
4
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
5
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
|
|
6
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
|
|
7
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
buildscript {
|
|
9
|
-
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '
|
|
11
|
+
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
|
|
10
12
|
ext.coreKtx = project.hasProperty('coreKtx') ? rootProject.ext.coreKtx : '1.12.0'
|
|
11
13
|
|
|
12
14
|
repositories {
|
|
@@ -14,7 +16,7 @@ buildscript {
|
|
|
14
16
|
mavenCentral()
|
|
15
17
|
}
|
|
16
18
|
dependencies {
|
|
17
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
19
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
18
20
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -23,11 +25,11 @@ apply plugin: 'com.android.library'
|
|
|
23
25
|
apply plugin: 'kotlin-android'
|
|
24
26
|
|
|
25
27
|
android {
|
|
26
|
-
namespace "com.capacitorjs.community.plugins.bluetoothle"
|
|
27
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
28
|
+
namespace = "com.capacitorjs.community.plugins.bluetoothle"
|
|
29
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
28
30
|
defaultConfig {
|
|
29
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
30
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
31
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
32
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
31
33
|
versionCode 1
|
|
32
34
|
versionName "1.0"
|
|
33
35
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -39,14 +41,17 @@ android {
|
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
lintOptions {
|
|
42
|
-
abortOnError false
|
|
44
|
+
abortOnError = false
|
|
43
45
|
}
|
|
44
46
|
compileOptions {
|
|
45
47
|
sourceCompatibility JavaVersion.VERSION_21
|
|
46
48
|
targetCompatibility JavaVersion.VERSION_21
|
|
47
49
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
kotlin {
|
|
53
|
+
compilerOptions {
|
|
54
|
+
jvmTarget = JvmTarget.JVM_21
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
|