@capacitor-community/bluetooth-le 7.2.0 → 8.0.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 +17 -17
- package/LICENSE +21 -21
- package/Package.swift +28 -0
- package/README.md +68 -161
- package/android/build.gradle +71 -68
- package/android/src/main/AndroidManifest.xml +22 -22
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/BluetoothLe.kt +1094 -1070
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/Conversion.kt +51 -51
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/Device.kt +771 -767
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/DeviceList.kt +28 -28
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/DeviceScanner.kt +189 -189
- package/dist/docs.json +906 -849
- package/dist/esm/bleClient.d.ts +278 -278
- package/dist/esm/bleClient.js +361 -347
- 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 -34
- package/dist/esm/conversion.js +134 -84
- package/dist/esm/conversion.js.map +1 -1
- package/dist/esm/definitions.d.ts +352 -313
- package/dist/esm/definitions.js +42 -42
- package/dist/esm/definitions.js.map +1 -1
- 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 -56
- package/dist/esm/web.js +403 -340
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +967 -837
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +967 -837
- package/dist/plugin.js.map +1 -1
- package/ios/{Plugin → Sources/BluetoothLe}/Conversion.swift +83 -83
- package/ios/{Plugin → Sources/BluetoothLe}/Device.swift +423 -423
- package/ios/Sources/BluetoothLe/DeviceListView.swift +121 -0
- package/ios/{Plugin → Sources/BluetoothLe}/DeviceManager.swift +503 -401
- package/ios/{Plugin → Sources/BluetoothLe}/Logging.swift +8 -8
- package/ios/{Plugin → Sources/BluetoothLe}/Plugin.swift +775 -682
- package/ios/{Plugin → Sources/BluetoothLe}/ThreadSafeDictionary.swift +15 -13
- package/ios/Tests/BluetoothLeTests/ConversionTests.swift +55 -0
- package/ios/Tests/BluetoothLeTests/PluginTests.swift +27 -0
- package/package.json +115 -101
- package/ios/Plugin/Info.plist +0 -24
- package/ios/Plugin/Plugin.h +0 -10
- package/ios/Plugin/Plugin.m +0 -41
package/android/build.gradle
CHANGED
|
@@ -1,68 +1,71 @@
|
|
|
1
|
-
ext {
|
|
2
|
-
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.
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
buildscript {
|
|
9
|
-
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '
|
|
10
|
-
ext.coreKtx = project.hasProperty('coreKtx') ? rootProject.ext.coreKtx : '1.12.0'
|
|
11
|
-
|
|
12
|
-
repositories {
|
|
13
|
-
google()
|
|
14
|
-
mavenCentral()
|
|
15
|
-
}
|
|
16
|
-
dependencies {
|
|
17
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
18
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
apply plugin: 'com.android.library'
|
|
23
|
-
apply plugin: 'kotlin-android'
|
|
24
|
-
|
|
25
|
-
android {
|
|
26
|
-
namespace "com.capacitorjs.community.plugins.bluetoothle"
|
|
27
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
28
|
-
defaultConfig {
|
|
29
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
30
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
31
|
-
versionCode 1
|
|
32
|
-
versionName "1.0"
|
|
33
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
34
|
-
}
|
|
35
|
-
buildTypes {
|
|
36
|
-
release {
|
|
37
|
-
minifyEnabled false
|
|
38
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
lintOptions {
|
|
42
|
-
abortOnError false
|
|
43
|
-
}
|
|
44
|
-
compileOptions {
|
|
45
|
-
sourceCompatibility JavaVersion.VERSION_21
|
|
46
|
-
targetCompatibility JavaVersion.VERSION_21
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
ext {
|
|
2
|
+
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
buildscript {
|
|
9
|
+
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
|
|
10
|
+
ext.coreKtx = project.hasProperty('coreKtx') ? rootProject.ext.coreKtx : '1.12.0'
|
|
11
|
+
|
|
12
|
+
repositories {
|
|
13
|
+
google()
|
|
14
|
+
mavenCentral()
|
|
15
|
+
}
|
|
16
|
+
dependencies {
|
|
17
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
18
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
apply plugin: 'com.android.library'
|
|
23
|
+
apply plugin: 'kotlin-android'
|
|
24
|
+
|
|
25
|
+
android {
|
|
26
|
+
namespace = "com.capacitorjs.community.plugins.bluetoothle"
|
|
27
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
28
|
+
defaultConfig {
|
|
29
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
30
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
31
|
+
versionCode 1
|
|
32
|
+
versionName "1.0"
|
|
33
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
34
|
+
}
|
|
35
|
+
buildTypes {
|
|
36
|
+
release {
|
|
37
|
+
minifyEnabled false
|
|
38
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
lintOptions {
|
|
42
|
+
abortOnError = false
|
|
43
|
+
}
|
|
44
|
+
compileOptions {
|
|
45
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
46
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
kotlin {
|
|
51
|
+
compilerOptions {
|
|
52
|
+
jvmTarget = "JVM_21"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
repositories {
|
|
57
|
+
google()
|
|
58
|
+
mavenCentral()
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
dependencies {
|
|
63
|
+
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
64
|
+
implementation project(':capacitor-android')
|
|
65
|
+
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
66
|
+
testImplementation "junit:junit:$junitVersion"
|
|
67
|
+
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
68
|
+
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
69
|
+
implementation "androidx.core:core-ktx:$coreKtx"
|
|
70
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
71
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
-
xmlns:tools="http://schemas.android.com/tools">
|
|
3
|
-
<!-- Bluetooth -->
|
|
4
|
-
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
5
|
-
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
6
|
-
<uses-permission
|
|
7
|
-
android:name="android.permission.BLUETOOTH"
|
|
8
|
-
android:maxSdkVersion="30" />
|
|
9
|
-
<uses-permission
|
|
10
|
-
android:name="android.permission.BLUETOOTH_ADMIN"
|
|
11
|
-
android:maxSdkVersion="30" />
|
|
12
|
-
<uses-permission
|
|
13
|
-
android:name="android.permission.BLUETOOTH_SCAN"
|
|
14
|
-
tools:targetApi="s" />
|
|
15
|
-
<uses-permission
|
|
16
|
-
android:name="android.permission.BLUETOOTH_CONNECT"
|
|
17
|
-
tools:targetApi="s" />
|
|
18
|
-
|
|
19
|
-
<uses-feature
|
|
20
|
-
android:name="android.hardware.bluetooth_le"
|
|
21
|
-
android:required="false" />
|
|
22
|
-
</manifest>
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
xmlns:tools="http://schemas.android.com/tools">
|
|
3
|
+
<!-- Bluetooth -->
|
|
4
|
+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
5
|
+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
6
|
+
<uses-permission
|
|
7
|
+
android:name="android.permission.BLUETOOTH"
|
|
8
|
+
android:maxSdkVersion="30" />
|
|
9
|
+
<uses-permission
|
|
10
|
+
android:name="android.permission.BLUETOOTH_ADMIN"
|
|
11
|
+
android:maxSdkVersion="30" />
|
|
12
|
+
<uses-permission
|
|
13
|
+
android:name="android.permission.BLUETOOTH_SCAN"
|
|
14
|
+
tools:targetApi="s" />
|
|
15
|
+
<uses-permission
|
|
16
|
+
android:name="android.permission.BLUETOOTH_CONNECT"
|
|
17
|
+
tools:targetApi="s" />
|
|
18
|
+
|
|
19
|
+
<uses-feature
|
|
20
|
+
android:name="android.hardware.bluetooth_le"
|
|
21
|
+
android:required="false" />
|
|
22
|
+
</manifest>
|
|
23
23
|
|