@iotize/device-com-ble.cordova 3.7.1 → 4.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "IoTize <contact@iotize.com>",
3
3
  "license": "MIT",
4
4
  "name": "@iotize/device-com-ble.cordova",
5
- "version": "3.7.1",
5
+ "version": "4.0.0",
6
6
  "cordova": {
7
7
  "id": "@iotize/device-com-ble.cordova",
8
8
  "platforms": [
package/plugin.xml CHANGED
@@ -12,6 +12,8 @@
12
12
  </js-module>
13
13
 
14
14
  <platform name="android">
15
+ <dependency id="@iotize/device-com-android-shared.cordova" version="0.0.3"/>
16
+
15
17
  <config-file target="res/xml/config.xml" parent="/*">
16
18
  <feature name="BLECom">
17
19
  <param name="android-package" value="com.iotize.plugin.cordova.ble.BLECom"/>
@@ -19,6 +21,9 @@
19
21
  </config-file>
20
22
  <framework src="src/android/build.gradle" custom="true" type="gradleReference" />
21
23
  <source-file src="src/android/src/ble" target-dir="java/com/iotize/plugin/cordova"/>
24
+
25
+ <source-file src="src/android/libs/iotize-device-com-ble-1.0.0-alpha.9.aar" target-dir="libs"/>
26
+
22
27
  <config-file target="AndroidManifest.xml" parent="/manifest">
23
28
  <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
24
29
  <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
@@ -65,4 +70,4 @@
65
70
  </config-file>
66
71
  </platform>
67
72
 
68
- </plugin>
73
+ </plugin>
@@ -3,24 +3,15 @@ repositories{
3
3
  flatDir {
4
4
  dirs 'libs'
5
5
  }
6
- maven {
7
- url "http://repo.iotize.com/artifactory/gradle-release"
8
- allowInsecureProtocol = true
9
- content {
10
- includeGroupByRegex "com\\.iotize\\.android"
11
- }
12
- }
13
6
  }
14
7
 
15
8
  dependencies {
16
9
  implementation "org.jetbrains.kotlin:kotlin-stdlib:1.3.61"
17
10
  implementation 'org.apache.commons:commons-collections4:4.4'
18
- implementation 'com.iotize.android:iotize-core:1.0.0-alpha.9'
19
- implementation 'com.iotize.android:iotize-client:1.0.0-alpha.9'
20
- implementation 'com.iotize.android:iotize-device-api:1.0.0-alpha.9'
21
- implementation 'com.iotize.android:iotize-device-com-ble:1.0.0-alpha.9'
22
11
  implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
23
12
  implementation 'com.google.code.gson:gson:2.8.5'
13
+
14
+ implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
24
15
  }
25
16
 
26
17
  android {
@@ -736,7 +736,7 @@ struct BLEAction {
736
736
  disConnect(command: command)
737
737
  }
738
738
 
739
- @obj(requestMTU:)
739
+ @objc(requestMTU:)
740
740
  func requestMTU(command: CDVInvokedUrlCommand) {
741
741
  //nothing to do
742
742
  self.sendSuccessWithSingleResponse(command: command, result: "OK")