capacitor-plugin-ihealth 1.1.3 → 1.1.5

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.
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
19
19
  # s.vendored_frameworks = 'iHealthSDK2.7.8.a'
20
20
  s.ios.vendored_library = 'ios/Plugin/libiHealthSDK2.7.8.a'
21
21
  # s.vendored_library = 'ios/Pods/Frameworks/iHealthSDK2.7.8.a'
22
- s.preserve_paths = 'ios/Plugin/libiHealthSDK2.7.8.a'
22
+ s.preserve_paths = 'ios/Plugin/libiHealthSDK2.7.8.a','android/src/iHealthSDK_2.9.10.jar'
23
23
  # s.prepare_command = <<-CMD
24
24
  # if [ -f $PWD/ios/Plugin/libiHealthSDK2.7.8.a ]
25
25
  # then
@@ -39,11 +39,13 @@ android {
39
39
  proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
40
40
  }
41
41
  }
42
- // sourceSets {
43
- // main {
44
- // jniLibs.srcDirs = ['libs']
45
- // }
46
- // }
42
+ sourceSets {
43
+ main {
44
+ assets.srcDirs += [
45
+ 'src',
46
+ ]
47
+ }
48
+ }
47
49
  lintOptions {
48
50
  abortOnError false
49
51
  }
@@ -0,0 +1,26 @@
1
+ package com.getcapacitor.android;
2
+
3
+ import static org.junit.Assert.*;
4
+
5
+ import android.content.Context;
6
+ import androidx.test.ext.junit.runners.AndroidJUnit4;
7
+ import androidx.test.platform.app.InstrumentationRegistry;
8
+ import org.junit.Test;
9
+ import org.junit.runner.RunWith;
10
+
11
+ /**
12
+ * Instrumented test, which will execute on an Android device.
13
+ *
14
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
15
+ */
16
+ @RunWith(AndroidJUnit4.class)
17
+ public class ExampleInstrumentedTest {
18
+
19
+ @Test
20
+ public void useAppContext() throws Exception {
21
+ // Context of the app under test.
22
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
23
+
24
+ assertEquals("com.getcapacitor.android", appContext.getPackageName());
25
+ }
26
+ }
Binary file
@@ -0,0 +1,18 @@
1
+ package com.getcapacitor;
2
+
3
+ import static org.junit.Assert.*;
4
+
5
+ import org.junit.Test;
6
+
7
+ /**
8
+ * Example local unit test, which will execute on the development machine (host).
9
+ *
10
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
11
+ */
12
+ public class ExampleUnitTest {
13
+
14
+ @Test
15
+ public void addition_isCorrect() throws Exception {
16
+ assertEquals(4, 2 + 2);
17
+ }
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-plugin-ihealth",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "capacitor plugin to integrate ihealth sdk",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -9,6 +9,8 @@
9
9
  "files": [
10
10
  "android/src/main/",
11
11
  "android/build.gradle",
12
+ "android/src/iHealthSDK_2.9.10.jar",
13
+ "android/src/",
12
14
  "dist/",
13
15
  "ios/Plugin/",
14
16
  "CapacitorPluginIhealth.podspec"