@capacitor-community/bluetooth-le 8.0.0 → 8.0.2
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 +27 -27
- package/README.md +4 -2
- package/android/build.gradle +73 -73
- package/android/src/main/AndroidManifest.xml +22 -22
- package/android/src/main/java/com/capacitorjs/community/plugins/bluetoothle/BluetoothLe.kt +1094 -1094
- 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 -771
- 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/esm/bleClient.js.map +1 -1
- package/dist/esm/conversion.js.map +1 -1
- package/dist/esm/queue.js.map +1 -1
- package/dist/esm/validators.js.map +1 -1
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +41 -41
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +41 -41
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/BluetoothLe/Conversion.swift +83 -83
- package/ios/Sources/BluetoothLe/Device.swift +422 -423
- package/ios/Sources/BluetoothLe/DeviceListView.swift +121 -121
- package/ios/Sources/BluetoothLe/DeviceManager.swift +409 -503
- package/ios/Sources/BluetoothLe/Logging.swift +8 -8
- package/ios/Sources/BluetoothLe/Plugin.swift +768 -775
- package/ios/Sources/BluetoothLe/ScanFilters.swift +114 -0
- package/ios/Sources/BluetoothLe/ThreadSafeDictionary.swift +61 -15
- package/ios/Tests/BluetoothLeTests/ConversionTests.swift +55 -55
- package/ios/Tests/BluetoothLeTests/PluginTests.swift +27 -27
- package/ios/Tests/BluetoothLeTests/ScanFiltersTests.swift +153 -0
- package/package.json +114 -115
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
require 'json'
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
|
-
|
|
5
|
-
Pod::Spec.new do |s|
|
|
6
|
-
s.name = 'CapacitorCommunityBluetoothLe'
|
|
7
|
-
s.version = package['version']
|
|
8
|
-
s.summary = package['description']
|
|
9
|
-
s.license = package['license']
|
|
10
|
-
s.homepage = package['repository']['url']
|
|
11
|
-
s.author = package['author']
|
|
12
|
-
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
|
-
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '15.0'
|
|
15
|
-
s.dependency 'Capacitor'
|
|
16
|
-
s.swift_version = '5.1'
|
|
17
|
-
end
|
|
1
|
+
require 'json'
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = 'CapacitorCommunityBluetoothLe'
|
|
7
|
+
s.version = package['version']
|
|
8
|
+
s.summary = package['description']
|
|
9
|
+
s.license = package['license']
|
|
10
|
+
s.homepage = package['repository']['url']
|
|
11
|
+
s.author = package['author']
|
|
12
|
+
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
|
+
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
+
s.ios.deployment_target = '15.0'
|
|
15
|
+
s.dependency 'Capacitor'
|
|
16
|
+
s.swift_version = '5.1'
|
|
17
|
+
end
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Capacitor plugin for Bluetooth Low Energy
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Capacitor plugin for Bluetooth Low Energy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/Package.swift
CHANGED
|
@@ -1,28 +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
|
-
]
|
|
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
28
|
)
|
package/README.md
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
-
<img src="https://img.shields.io/maintenance/yes/
|
|
9
|
+
<img src="https://img.shields.io/maintenance/yes/2026?style=flat-square" />
|
|
10
10
|
<a href="https://github.com/capacitor-community/bluetooth-le/actions?query=workflow%3A%22CI%22"><img src="https://img.shields.io/github/actions/workflow/status/capacitor-community/bluetooth-le/main.yml?branch=main&style=flat-square" /></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/@capacitor-community/bluetooth-le"><img src="https://img.shields.io/npm/l/@capacitor-community/bluetooth-le?style=flat-square" /></a>
|
|
12
12
|
<br>
|
|
13
13
|
<a href="https://www.npmjs.com/package/@capacitor-community/bluetooth-le"><img src="https://img.shields.io/npm/dw/@capacitor-community/bluetooth-le?style=flat-square" /></a>
|
|
14
14
|
<a href="https://www.npmjs.com/package/@capacitor-community/bluetooth-le"><img src="https://img.shields.io/npm/v/@capacitor-community/bluetooth-le?style=flat-square" /></a>
|
|
15
15
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
16
|
-
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-
|
|
16
|
+
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-27-orange?style=flat-square" /></a>
|
|
17
17
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
18
18
|
</p>
|
|
19
19
|
|
|
@@ -1119,6 +1119,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
1119
1119
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/JasonAsmk"><img src="https://avatars.githubusercontent.com/u/994111?v=4?s=100" width="100px;" alt="Iason Asimakopoulos"/><br /><sub><b>Iason Asimakopoulos</b></sub></a><br /><a href="https://github.com/capacitor-community/bluetooth-le/commits?author=JasonAsmk" title="Code">💻</a></td>
|
|
1120
1120
|
<td align="center" valign="top" width="14.28%"><a href="https://www.talaviram.com"><img src="https://avatars.githubusercontent.com/u/6911158?v=4?s=100" width="100px;" alt="Tal Aviram"/><br /><sub><b>Tal Aviram</b></sub></a><br /><a href="https://github.com/capacitor-community/bluetooth-le/commits?author=talaviram" title="Code">💻</a></td>
|
|
1121
1121
|
<td align="center" valign="top" width="14.28%"><a href="https://emmanuelrobinson.dev/"><img src="https://avatars.githubusercontent.com/u/52470812?v=4?s=100" width="100px;" alt="Emmanuel Robinson Ejakpomewhe"/><br /><sub><b>Emmanuel Robinson Ejakpomewhe</b></sub></a><br /><a href="https://github.com/capacitor-community/bluetooth-le/commits?author=emmanuelorobinson" title="Code">💻</a></td>
|
|
1122
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/timrach"><img src="https://avatars.githubusercontent.com/u/6890557?v=4?s=100" width="100px;" alt="Tim Rach"/><br /><sub><b>Tim Rach</b></sub></a><br /><a href="https://github.com/capacitor-community/bluetooth-le/commits?author=timrach" title="Code">💻</a></td>
|
|
1123
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/mklingmann"><img src="https://avatars.githubusercontent.com/u/179975?v=4?s=100" width="100px;" alt="mklingmann"/><br /><sub><b>mklingmann</b></sub></a><br /><a href="https://github.com/capacitor-community/bluetooth-le/commits?author=mklingmann" title="Code">💻</a></td>
|
|
1122
1124
|
</tr>
|
|
1123
1125
|
</tbody>
|
|
1124
1126
|
</table>
|
package/android/build.gradle
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
2
|
-
|
|
3
|
-
ext {
|
|
4
|
-
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
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'
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
buildscript {
|
|
11
|
-
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
|
|
12
|
-
ext.coreKtx = project.hasProperty('coreKtx') ? rootProject.ext.coreKtx : '1.12.0'
|
|
13
|
-
|
|
14
|
-
repositories {
|
|
15
|
-
google()
|
|
16
|
-
mavenCentral()
|
|
17
|
-
}
|
|
18
|
-
dependencies {
|
|
19
|
-
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
20
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
apply plugin: 'com.android.library'
|
|
25
|
-
apply plugin: 'kotlin-android'
|
|
26
|
-
|
|
27
|
-
android {
|
|
28
|
-
namespace = "com.capacitorjs.community.plugins.bluetoothle"
|
|
29
|
-
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
30
|
-
defaultConfig {
|
|
31
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
32
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
33
|
-
versionCode 1
|
|
34
|
-
versionName "1.0"
|
|
35
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
36
|
-
}
|
|
37
|
-
buildTypes {
|
|
38
|
-
release {
|
|
39
|
-
minifyEnabled false
|
|
40
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
lintOptions {
|
|
44
|
-
abortOnError = false
|
|
45
|
-
}
|
|
46
|
-
compileOptions {
|
|
47
|
-
sourceCompatibility JavaVersion.VERSION_21
|
|
48
|
-
targetCompatibility JavaVersion.VERSION_21
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
kotlin {
|
|
53
|
-
compilerOptions {
|
|
54
|
-
jvmTarget = JvmTarget.JVM_21
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
repositories {
|
|
59
|
-
google()
|
|
60
|
-
mavenCentral()
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
dependencies {
|
|
65
|
-
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
66
|
-
implementation project(':capacitor-android')
|
|
67
|
-
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
68
|
-
testImplementation "junit:junit:$junitVersion"
|
|
69
|
-
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
70
|
-
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
71
|
-
implementation "androidx.core:core-ktx:$coreKtx"
|
|
72
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
73
|
-
}
|
|
1
|
+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
2
|
+
|
|
3
|
+
ext {
|
|
4
|
+
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
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'
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
buildscript {
|
|
11
|
+
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
|
|
12
|
+
ext.coreKtx = project.hasProperty('coreKtx') ? rootProject.ext.coreKtx : '1.12.0'
|
|
13
|
+
|
|
14
|
+
repositories {
|
|
15
|
+
google()
|
|
16
|
+
mavenCentral()
|
|
17
|
+
}
|
|
18
|
+
dependencies {
|
|
19
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
20
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
apply plugin: 'com.android.library'
|
|
25
|
+
apply plugin: 'kotlin-android'
|
|
26
|
+
|
|
27
|
+
android {
|
|
28
|
+
namespace = "com.capacitorjs.community.plugins.bluetoothle"
|
|
29
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
30
|
+
defaultConfig {
|
|
31
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
32
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
33
|
+
versionCode 1
|
|
34
|
+
versionName "1.0"
|
|
35
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
36
|
+
}
|
|
37
|
+
buildTypes {
|
|
38
|
+
release {
|
|
39
|
+
minifyEnabled false
|
|
40
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
lintOptions {
|
|
44
|
+
abortOnError = false
|
|
45
|
+
}
|
|
46
|
+
compileOptions {
|
|
47
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
48
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
kotlin {
|
|
53
|
+
compilerOptions {
|
|
54
|
+
jvmTarget = JvmTarget.JVM_21
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
repositories {
|
|
59
|
+
google()
|
|
60
|
+
mavenCentral()
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
dependencies {
|
|
65
|
+
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
66
|
+
implementation project(':capacitor-android')
|
|
67
|
+
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
68
|
+
testImplementation "junit:junit:$junitVersion"
|
|
69
|
+
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
70
|
+
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
71
|
+
implementation "androidx.core:core-ktx:$coreKtx"
|
|
72
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
73
|
+
}
|
|
@@ -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
|
|