@gyjshow/react-native-alipay 1.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.
Files changed (44) hide show
  1. package/android/build/.transforms/7213c3680035df50489300c199f6f408/results.bin +1 -0
  2. package/android/build/.transforms/7213c3680035df50489300c199f6f408/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/gyj/reactnativealipay/BuildConfig.dex +0 -0
  3. package/android/build/.transforms/7213c3680035df50489300c199f6f408/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/gyj/reactnativealipay/RNAlipayModule.dex +0 -0
  4. package/android/build/.transforms/7213c3680035df50489300c199f6f408/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/gyj/reactnativealipay/RNAlipayPackage.dex +0 -0
  5. package/android/build/.transforms/7213c3680035df50489300c199f6f408/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  6. package/android/build/.transforms/ec40efc56336b149bc3bf2df97c1f4bc/results.bin +1 -0
  7. package/android/build/.transforms/ec40efc56336b149bc3bf2df97c1f4bc/transformed/classes/classes_dex/classes.dex +0 -0
  8. package/android/build/generated/source/buildConfig/debug/com/gyj/reactnativealipay/BuildConfig.java +10 -0
  9. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +7 -0
  10. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  11. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  12. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  13. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  14. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  15. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  16. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
  17. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  18. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  19. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  20. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  21. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/gyj/reactnativealipay/BuildConfig.class +0 -0
  22. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/gyj/reactnativealipay/RNAlipayModule.class +0 -0
  23. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/gyj/reactnativealipay/RNAlipayPackage.class +0 -0
  24. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
  25. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +7 -0
  26. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +7 -0
  27. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  28. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  29. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/gyj/reactnativealipay/BuildConfig.class +0 -0
  30. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/gyj/reactnativealipay/RNAlipayModule.class +0 -0
  31. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/gyj/reactnativealipay/RNAlipayPackage.class +0 -0
  32. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  33. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
  34. package/android/build/outputs/logs/manifest-merger-debug-report.txt +16 -0
  35. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  36. package/android/build.gradle +46 -0
  37. package/android/src/main/java/com/gyj/alipay/RNAlipayModule.java +67 -0
  38. package/android/src/main/java/com/gyj/alipay/RNAlipayPackage.java +24 -0
  39. package/ios/RNAlipay/RNAlipay.h +7 -0
  40. package/ios/RNAlipay/RNAlipay.m +40 -0
  41. package/lib/index.d.ts +6 -0
  42. package/lib/index.js +19 -0
  43. package/package.json +40 -0
  44. package/react-native-alipay.podspec +21 -0
@@ -0,0 +1 @@
1
+ o/bundleLibRuntimeToDirDebug
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Automatically generated file. DO NOT MODIFY
3
+ */
4
+ package com.gyj.reactnativealipay;
5
+
6
+ public final class BuildConfig {
7
+ public static final boolean DEBUG = Boolean.parseBoolean("true");
8
+ public static final String LIBRARY_PACKAGE_NAME = "com.gyj.reactnativealipay";
9
+ public static final String BUILD_TYPE = "debug";
10
+ }
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="com.gyj.reactnativealipay" >
4
+
5
+ <uses-sdk android:minSdkVersion="21" />
6
+
7
+ </manifest>
@@ -0,0 +1,18 @@
1
+ {
2
+ "version": 3,
3
+ "artifactType": {
4
+ "type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
5
+ "kind": "Directory"
6
+ },
7
+ "applicationId": "com.gyj.reactnativealipay",
8
+ "variantName": "debug",
9
+ "elements": [
10
+ {
11
+ "type": "SINGLE",
12
+ "filters": [],
13
+ "attributes": [],
14
+ "outputFile": "AndroidManifest.xml"
15
+ }
16
+ ],
17
+ "elementType": "File"
18
+ }
@@ -0,0 +1,6 @@
1
+ aarFormatVersion=1.0
2
+ aarMetadataVersion=1.0
3
+ minCompileSdk=1
4
+ minCompileSdkExtension=0
5
+ minAndroidGradlePluginVersion=1.0.0
6
+ coreLibraryDesugaringEnabled=false
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/generated/res/resValues/debug"/></dataSet><mergedItems/></merger>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/main/assets"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/debug/assets"/></dataSet><dataSet config="generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/shader_assets/debug/compileDebugShaders/out"/></dataSet></merger>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/debug/jniLibs"/></dataSet></merger>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/main/shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/src/debug/shaders"/></dataSet></merger>
@@ -0,0 +1,2 @@
1
+ R_DEF: Internal format may change without notice
2
+ local
@@ -0,0 +1,7 @@
1
+ 1<?xml version="1.0" encoding="utf-8"?>
2
+ 2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ 3 package="com.gyj.reactnativealipay" >
4
+ 4
5
+ 5 <uses-sdk android:minSdkVersion="21" />
6
+ 6
7
+ 7</manifest>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="com.gyj.reactnativealipay" >
4
+
5
+ <uses-sdk android:minSdkVersion="21" />
6
+
7
+ </manifest>
@@ -0,0 +1,16 @@
1
+ -- Merging decision tree log ---
2
+ manifest
3
+ ADDED from /Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/tmp/ProcessLibraryManifest/debug/tempAndroidManifest15994253437447371619.xml:2:13-83
4
+ INJECTED from /Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/tmp/ProcessLibraryManifest/debug/tempAndroidManifest15994253437447371619.xml:2:13-83
5
+ package
6
+ INJECTED from /Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/tmp/ProcessLibraryManifest/debug/tempAndroidManifest15994253437447371619.xml
7
+ xmlns:android
8
+ ADDED from /Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/tmp/ProcessLibraryManifest/debug/tempAndroidManifest15994253437447371619.xml:2:23-81
9
+ uses-sdk
10
+ INJECTED from /Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/tmp/ProcessLibraryManifest/debug/tempAndroidManifest15994253437447371619.xml reason: use-sdk injection requested
11
+ INJECTED from /Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/tmp/ProcessLibraryManifest/debug/tempAndroidManifest15994253437447371619.xml
12
+ INJECTED from /Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/tmp/ProcessLibraryManifest/debug/tempAndroidManifest15994253437447371619.xml
13
+ android:targetSdkVersion
14
+ INJECTED from /Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/tmp/ProcessLibraryManifest/debug/tempAndroidManifest15994253437447371619.xml
15
+ android:minSdkVersion
16
+ INJECTED from /Users/mt/Documents/proj/yy/app/RuhunSwap/node_modules/@gyj/react-native-alipay/android/build/intermediates/tmp/ProcessLibraryManifest/debug/tempAndroidManifest15994253437447371619.xml
@@ -0,0 +1,46 @@
1
+ buildscript {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ }
6
+ }
7
+
8
+ apply plugin: 'com.android.library'
9
+
10
+ android {
11
+ namespace "com.gyj.reactnativealipay"
12
+
13
+ compileSdkVersion 34
14
+
15
+ defaultConfig {
16
+ minSdkVersion 21
17
+ targetSdkVersion 34
18
+ versionCode 1
19
+ versionName "1.0"
20
+ consumerProguardFiles "consumer-rules.pro"
21
+ }
22
+
23
+ buildTypes {
24
+ release {
25
+ minifyEnabled false
26
+ }
27
+ }
28
+
29
+ compileOptions {
30
+ sourceCompatibility JavaVersion.VERSION_17
31
+ targetCompatibility JavaVersion.VERSION_17
32
+ }
33
+ }
34
+
35
+ repositories {
36
+ google()
37
+ mavenCentral()
38
+ }
39
+
40
+ dependencies {
41
+ // React Native
42
+ implementation "com.facebook.react:react-android"
43
+
44
+ // 支付宝 Android SDK(自动下载)
45
+ api "com.alipay.sdk:alipaysdk-android:+@aar"
46
+ }
@@ -0,0 +1,67 @@
1
+ package com.gyj.reactnativealipay;
2
+
3
+ import com.facebook.react.bridge.ReactApplicationContext;
4
+ import com.facebook.react.bridge.ReactContextBaseJavaModule;
5
+ import com.facebook.react.bridge.ReactMethod;
6
+ import com.facebook.react.bridge.Promise;
7
+
8
+ import android.app.Activity;
9
+ import android.content.Intent;
10
+ import android.net.Uri;
11
+
12
+ import com.alipay.sdk.app.PayTask;
13
+
14
+ import java.util.Map;
15
+ import java.util.HashMap;
16
+
17
+ public class RNAlipayModule extends ReactContextBaseJavaModule {
18
+ private ReactApplicationContext reactContext;
19
+ private String scheme = "";
20
+
21
+ public RNAlipayModule(ReactApplicationContext reactContext) {
22
+ super(reactContext);
23
+ this.reactContext = reactContext;
24
+ }
25
+
26
+ @Override
27
+ public String getName() {
28
+ return "RNAlipay";
29
+ }
30
+
31
+ // 设置 scheme
32
+ @ReactMethod
33
+ public void setAlipayScheme(String scheme) {
34
+ this.scheme = scheme;
35
+ }
36
+
37
+ // 发起支付
38
+ @ReactMethod
39
+ public void alipay(String payInfo, Promise promise) {
40
+ Activity currentActivity = getCurrentActivity();
41
+ if (currentActivity == null) {
42
+ promise.reject("E_NO_ACTIVITY", "No current activity");
43
+ return;
44
+ }
45
+
46
+ new Thread(() -> {
47
+ PayTask alipay = new PayTask(currentActivity);
48
+ Map<String, String> result = alipay.payV2(payInfo, true);
49
+ // 返回结果是 Map,转换成 JSON 字符串给 JS
50
+ promise.resolve(result.toString());
51
+ }).start();
52
+ }
53
+
54
+ // 获取 SDK 版本
55
+ @ReactMethod
56
+ public void getVersion(Promise promise) {
57
+ Activity currentActivity = getCurrentActivity();
58
+ if (currentActivity == null) {
59
+ promise.reject("E_NO_ACTIVITY", "No current activity");
60
+ return;
61
+ }
62
+
63
+ PayTask alipay = new PayTask(currentActivity);
64
+ String version = alipay.getVersion();
65
+ promise.resolve(version);
66
+ }
67
+ }
@@ -0,0 +1,24 @@
1
+ package com.gyj.reactnativealipay;
2
+
3
+ import com.facebook.react.ReactPackage;
4
+ import com.facebook.react.bridge.NativeModule;
5
+ import com.facebook.react.bridge.ReactApplicationContext;
6
+ import com.facebook.react.uimanager.ViewManager;
7
+
8
+ import java.util.ArrayList;
9
+ import java.util.Collections;
10
+ import java.util.List;
11
+
12
+ public class RNAlipayPackage implements ReactPackage {
13
+ @Override
14
+ public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
15
+ List<NativeModule> modules = new ArrayList<>();
16
+ modules.add(new RNAlipayModule(reactContext));
17
+ return modules;
18
+ }
19
+
20
+ @Override
21
+ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
22
+ return Collections.emptyList();
23
+ }
24
+ }
@@ -0,0 +1,7 @@
1
+ #import <React/RCTBridgeModule.h>
2
+
3
+ @interface RNAlipay : NSObject <RCTBridgeModule>
4
+
5
+ @property (nonatomic, strong) NSString *scheme;
6
+
7
+ @end
@@ -0,0 +1,40 @@
1
+ #import "RNAlipay.h"
2
+ #import <AlipaySDK/AlipaySDK.h>
3
+ #import <React/RCTLog.h>
4
+
5
+ @implementation RNAlipay
6
+
7
+ RCT_EXPORT_MODULE();
8
+
9
+ RCT_EXPORT_METHOD(setAlipayScheme:(NSString *)scheme)
10
+ {
11
+ self.scheme = scheme;
12
+ RCTLogInfo(@"Alipay scheme set: %@", scheme);
13
+ }
14
+
15
+ RCT_REMAP_METHOD(alipay,
16
+ orderInfo:(NSString *)orderInfo
17
+ resolver:(RCTPromiseResolveBlock)resolve
18
+ rejecter:(RCTPromiseRejectBlock)reject)
19
+ {
20
+ if (!self.scheme) {
21
+ reject(@"no_scheme", @"Alipay scheme is not set", nil);
22
+ return;
23
+ }
24
+
25
+ [[AlipaySDK defaultService] payOrder:orderInfo
26
+ fromScheme:self.scheme
27
+ callback:^(NSDictionary *resultDic) {
28
+ resolve(resultDic);
29
+ }];
30
+ }
31
+
32
+ RCT_REMAP_METHOD(getVersion,
33
+ getVersionWithResolver:(RCTPromiseResolveBlock)resolve
34
+ rejecter:(RCTPromiseRejectBlock)reject)
35
+ {
36
+ NSString *version = [[AlipaySDK defaultService] currentVersion];
37
+ resolve(version);
38
+ }
39
+
40
+ @end
package/lib/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ declare const Alipay: {
2
+ setAlipayScheme: (scheme: string) => void;
3
+ alipay: (payInfo: string) => Promise<string>;
4
+ getVersion: () => Promise<string>;
5
+ };
6
+ export default Alipay;
package/lib/index.js ADDED
@@ -0,0 +1,19 @@
1
+ import { NativeModules } from 'react-native';
2
+ const { RNAlipay } = NativeModules;
3
+ const Alipay = {
4
+ //这是scheme
5
+ setAlipayScheme: (scheme) => {
6
+ // if (Platform.OS === 'ios') {
7
+ RNAlipay.setAlipayScheme(scheme);
8
+ // }
9
+ },
10
+ //发起支付
11
+ alipay: (payInfo) => {
12
+ return RNAlipay.alipay(payInfo);
13
+ },
14
+ //获取版本号
15
+ getVersion: () => {
16
+ return RNAlipay.getVersion();
17
+ },
18
+ };
19
+ export default Alipay;
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@gyjshow/react-native-alipay",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "description": "基于 React Native 的支付宝插件,支持 Android / iOS。",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "files": [
9
+ "lib",
10
+ "ios",
11
+ "android",
12
+ "*.podspec"
13
+ ],
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "test": "echo \"Error: no test specified\" && exit 1"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/gyjshow/react-native-alipay.git"
21
+ },
22
+ "keywords": [
23
+ "react",
24
+ "native",
25
+ "alipay",
26
+ "react-native-alipay"
27
+ ],
28
+ "author": "Allen.ge",
29
+ "license": "MIT",
30
+ "homepage": "https://github.com/gyjshow/react-native-alipay.git",
31
+ "peerDependencies": {
32
+ "react": "*",
33
+ "react-native": ">=0.60.0"
34
+ },
35
+ "devDependencies": {
36
+ "@types/react": "^19.2.13",
37
+ "react-native": "^0.83.1",
38
+ "typescript": "^5.9.3"
39
+ }
40
+ }
@@ -0,0 +1,21 @@
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 = "react-native-alipay"
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license']
10
+
11
+ s.authors = package['author']
12
+ s.homepage = package['homepage']
13
+ s.platform = :ios, "9.0"
14
+
15
+ s.source = { :git => "https://github.com/react-native-hero/alipay.git", :tag => "v#{s.version}" }
16
+ s.source_files = "ios/**/*.{h,m}"
17
+
18
+ s.dependency 'React'
19
+ s.dependency 'AlipaySDK-iOS'
20
+
21
+ end