@react-native-hero/alipay 0.0.4 → 0.0.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.
- package/README.md +34 -2
- package/android/build/.transforms/363dd4febf4c52902ae5e907aee6ee96/results.bin +0 -0
- package/android/build/.transforms/540d2733fa01935409edd526093bc262/results.bin +1 -0
- package/android/build/.transforms/540d2733fa01935409edd526093bc262/transformed/out/AndroidManifest.xml +13 -0
- package/android/build/.transforms/540d2733fa01935409edd526093bc262/transformed/out/META-INF/com/android/build/gradle/aar-metadata.properties +4 -0
- package/android/build/.transforms/540d2733fa01935409edd526093bc262/transformed/out/R.txt +1953 -0
- package/android/build/.transforms/540d2733fa01935409edd526093bc262/transformed/out/jars/classes.jar +0 -0
- package/android/build/.transforms/540d2733fa01935409edd526093bc262/transformed/out/jars/libs/R.jar +0 -0
- package/android/build/generated/source/buildConfig/release/com/github/reactnativehero/alipay/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/release/aapt/AndroidManifest.xml +13 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/release/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_main_jar/release/classes.jar +0 -0
- package/android/build/intermediates/aar_metadata/release/aar-metadata.properties +4 -0
- package/android/build/intermediates/annotation_processor_list/release/annotationProcessors.json +1 -0
- package/android/build/intermediates/annotations_typedef_file/release/typedefs.txt +0 -0
- package/android/build/intermediates/compile_library_classes_jar/release/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/release/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/release/R.txt +1953 -0
- package/android/build/intermediates/full_jar/release/full.jar +0 -0
- package/android/build/intermediates/incremental/mergeReleaseJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeReleaseShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageReleaseAssets/merger.xml +2 -0
- package/android/build/intermediates/incremental/release/packageReleaseResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/release/packageReleaseResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/release-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/javac/release/classes/com/github/reactnativehero/alipay/BuildConfig.class +0 -0
- package/android/build/intermediates/library_java_res/release/res.jar +0 -0
- package/android/build/intermediates/lint_model_metadata/release/lint-model-metadata.properties +2 -0
- package/android/build/intermediates/local_aar_for_lint/release/out.aar +0 -0
- package/android/build/intermediates/local_only_symbol_list/release/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/release/manifest-merger-blame-release-report.txt +21 -0
- package/android/build/intermediates/merged_java_res/release/feature-react-native-hero_alipay.jar +0 -0
- package/android/build/intermediates/merged_manifest/release/AndroidManifest.xml +13 -0
- package/android/build/intermediates/navigation_json/release/navigation.json +1 -0
- package/android/build/intermediates/packaged_manifests/release/output-metadata.json +18 -0
- package/android/build/intermediates/runtime_library_classes_jar/release/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/release/package-aware-r.txt +1446 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileReleaseKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileReleaseKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-release-report.txt +37 -0
- package/android/build/tmp/compileReleaseJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/release/META-INF/react-native-hero_alipay_release.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/release/com/github/reactnativehero/alipay/RNTAlipayModule.class +0 -0
- package/android/build/tmp/kotlin-classes/release/com/github/reactnativehero/alipay/RNTAlipayPackage.class +0 -0
- package/android/src/main/java/com/github/reactnativehero/alipay/RNTAlipayModule.kt +27 -0
- package/index.js +39 -2
- package/ios/RNTAlipay/RNTAlipay.m +29 -0
- package/package.json +1 -1
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i
ADDED
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len
ADDED
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i
ADDED
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i
ADDED
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
ADDED
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len
ADDED
|
Binary file
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
-- Merging decision tree log ---
|
|
2
|
+
manifest
|
|
3
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:1:1-8:12
|
|
4
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:1:1-8:12
|
|
5
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:1:1-8:12
|
|
6
|
+
package
|
|
7
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:2:11-54
|
|
8
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
9
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
10
|
+
xmlns:android
|
|
11
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:1:11-69
|
|
12
|
+
uses-permission#android.permission.INTERNET
|
|
13
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:4:5-67
|
|
14
|
+
android:name
|
|
15
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:4:22-64
|
|
16
|
+
uses-permission#android.permission.ACCESS_WIFI_STATE
|
|
17
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:5:5-75
|
|
18
|
+
android:name
|
|
19
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:5:22-73
|
|
20
|
+
uses-permission#android.permission.ACCESS_NETWORK_STATE
|
|
21
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:6:5-78
|
|
22
|
+
android:name
|
|
23
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml:6:22-76
|
|
24
|
+
uses-sdk
|
|
25
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml reason: use-sdk injection requested
|
|
26
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
27
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
28
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
29
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
30
|
+
android:targetSdkVersion
|
|
31
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
32
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
33
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
34
|
+
android:minSdkVersion
|
|
35
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
36
|
+
ADDED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
37
|
+
INJECTED from /Users/musicode/workspace/fe-team/finstao-app/node_modules/@react-native-hero/alipay/android/src/main/AndroidManifest.xml
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
package com.github.reactnativehero.alipay
|
|
2
2
|
|
|
3
|
+
import com.alipay.sdk.app.AuthTask
|
|
3
4
|
import com.alipay.sdk.app.PayTask
|
|
4
5
|
import com.facebook.react.bridge.*
|
|
5
6
|
|
|
@@ -9,6 +10,32 @@ class RNTAlipayModule(private val reactContext: ReactApplicationContext) : React
|
|
|
9
10
|
return "RNTAlipay"
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
@ReactMethod
|
|
14
|
+
fun auth(options: ReadableMap, promise: Promise) {
|
|
15
|
+
|
|
16
|
+
Thread {
|
|
17
|
+
|
|
18
|
+
val response = Arguments.createMap()
|
|
19
|
+
|
|
20
|
+
val alipay = AuthTask(currentActivity)
|
|
21
|
+
// 执行到这会阻塞,直到从支付宝返回当前 App 才会继续往下执行
|
|
22
|
+
val result = alipay.authV2(options.getString("authString"), true)
|
|
23
|
+
|
|
24
|
+
val resultStatus = result["resultStatus"] ?: "1"
|
|
25
|
+
if (resultStatus == "9000") {
|
|
26
|
+
response.putInt("code", 0)
|
|
27
|
+
response.putString("msg", "success")
|
|
28
|
+
response.putString("data", result["result"] ?: "")
|
|
29
|
+
} else {
|
|
30
|
+
response.putInt("code", resultStatus.toInt())
|
|
31
|
+
response.putString("msg", result["memo"] ?: "")
|
|
32
|
+
}
|
|
33
|
+
promise.resolve(response)
|
|
34
|
+
|
|
35
|
+
}.start()
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
|
|
12
39
|
@ReactMethod
|
|
13
40
|
fun pay(options: ReadableMap, promise: Promise) {
|
|
14
41
|
|
package/index.js
CHANGED
|
@@ -3,6 +3,43 @@ import { NativeModules } from 'react-native'
|
|
|
3
3
|
|
|
4
4
|
const { RNTAlipay } = NativeModules
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* 授权登录
|
|
8
|
+
*/
|
|
9
|
+
export function auth(options) {
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
RNTAlipay
|
|
12
|
+
.auth(options)
|
|
13
|
+
.then(response => {
|
|
14
|
+
if (response.code === 0) {
|
|
15
|
+
if (response.data && typeof response.data === 'string') {
|
|
16
|
+
// 把 json 字符串解析成对象,方便外部处理
|
|
17
|
+
// data 示例
|
|
18
|
+
// success=true&auth_code=d9d1b5acc26e461dbfcb6974c8ff5E64&result_code=200 &user_id=2088003646494707
|
|
19
|
+
const data = { }
|
|
20
|
+
response.data.split('&').forEach(
|
|
21
|
+
function (item) {
|
|
22
|
+
const tokens = item.split('=')
|
|
23
|
+
if (tokens.length === 2) {
|
|
24
|
+
const key = tokens[0].trim()
|
|
25
|
+
const value = tokens[1].trim()
|
|
26
|
+
if (key && value) {
|
|
27
|
+
data[key] = value
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
response.data = data
|
|
33
|
+
}
|
|
34
|
+
resolve(response)
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
reject(response)
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
|
|
6
43
|
/**
|
|
7
44
|
* 支付
|
|
8
45
|
*/
|
|
@@ -16,10 +53,10 @@ export function pay(options) {
|
|
|
16
53
|
// 把 json 字符串解析成对象,方便外部处理
|
|
17
54
|
response.data = JSON.parse(response.data)
|
|
18
55
|
}
|
|
19
|
-
resolve(
|
|
56
|
+
resolve(response)
|
|
20
57
|
}
|
|
21
58
|
else {
|
|
22
|
-
reject(
|
|
59
|
+
reject(response)
|
|
23
60
|
}
|
|
24
61
|
})
|
|
25
62
|
})
|
|
@@ -20,6 +20,35 @@ options:(NSDictionary<NSString*, id> *)options {
|
|
|
20
20
|
|
|
21
21
|
RCT_EXPORT_MODULE(RNTAlipay);
|
|
22
22
|
|
|
23
|
+
RCT_EXPORT_METHOD(auth:(NSDictionary*)options
|
|
24
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
25
|
+
reject:(RCTPromiseRejectBlock)reject) {
|
|
26
|
+
|
|
27
|
+
NSString *authInfo = [RCTConvert NSString:options[@"authString"]];
|
|
28
|
+
NSString *appScheme = [RCTConvert NSString:options[@"appScheme"]];
|
|
29
|
+
|
|
30
|
+
[[AlipaySDK defaultService] auth_V2WithInfo:authInfo fromScheme:appScheme callback:^(NSDictionary *resultDic) {
|
|
31
|
+
|
|
32
|
+
NSMutableDictionary *response = [[NSMutableDictionary alloc] init];
|
|
33
|
+
|
|
34
|
+
NSString *resultStatus = resultDic[@"resultStatus"] ?: @"1";
|
|
35
|
+
|
|
36
|
+
if ([resultStatus isEqualToString:@("9000")]) {
|
|
37
|
+
response[@"code"] = 0;
|
|
38
|
+
response[@"msg"] = @("success");
|
|
39
|
+
response[@"data"] = resultDic[@"result"] ?: @"";
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
response[@"code"] = @([resultStatus intValue]);
|
|
43
|
+
response[@"msg"] = resultDic[@"memo"] ?: @"";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
resolve(response);
|
|
47
|
+
|
|
48
|
+
}];
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
23
52
|
RCT_EXPORT_METHOD(pay:(NSDictionary*)options
|
|
24
53
|
resolve:(RCTPromiseResolveBlock)resolve
|
|
25
54
|
reject:(RCTPromiseRejectBlock)reject) {
|