@react-native-hero/alipay 0.0.1
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/HeroAlipay.podspec +20 -0
- package/README.md +5 -0
- package/android/build.gradle +43 -0
- package/android/src/main/AndroidManifest.xml +8 -0
- package/android/src/main/java/com/github/reactnativehero/alipay/RNTAlipayModule.kt +37 -0
- package/android/src/main/java/com/github/reactnativehero/alipay/RNTAlipayPackage.kt +18 -0
- package/index.js +17 -0
- package/ios/RNTAlipay/RNTAlipay.h +8 -0
- package/ios/RNTAlipay/RNTAlipay.m +41 -0
- package/ios/RNTAlipay.xcodeproj/project.pbxproj +295 -0
- package/package.json +24 -0
|
@@ -0,0 +1,20 @@
|
|
|
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 = "HeroAlipay"
|
|
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
|
+
end
|
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
// Buildscript is evaluated before everything else so we can't use safeExtGet
|
|
3
|
+
def kotlinVersion = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : '1.3.40'
|
|
4
|
+
|
|
5
|
+
repositories {
|
|
6
|
+
jcenter()
|
|
7
|
+
google()
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
dependencies {
|
|
11
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
def safeExtGet(prop, fallback) {
|
|
16
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
apply plugin: 'com.android.library'
|
|
20
|
+
|
|
21
|
+
android {
|
|
22
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 28)
|
|
23
|
+
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
|
|
24
|
+
|
|
25
|
+
defaultConfig {
|
|
26
|
+
minSdkVersion safeExtGet('minSdkVersion', 16)
|
|
27
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 28)
|
|
28
|
+
versionCode 1
|
|
29
|
+
versionName "1.0"
|
|
30
|
+
consumerProguardFiles 'proguard-rules.pro'
|
|
31
|
+
}
|
|
32
|
+
lintOptions {
|
|
33
|
+
abortOnError false
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
dependencies {
|
|
38
|
+
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
|
|
39
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.3.40')}"
|
|
40
|
+
api 'com.alipay.sdk:alipaysdk-android:+@aar'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
apply plugin: 'kotlin-android'
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
package="com.github.reactnativehero.alipay">
|
|
3
|
+
|
|
4
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
5
|
+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
|
|
6
|
+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
|
7
|
+
|
|
8
|
+
</manifest>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
package com.github.reactnativehero.alipay
|
|
2
|
+
|
|
3
|
+
import com.alipay.sdk.app.PayTask
|
|
4
|
+
import com.facebook.react.bridge.*
|
|
5
|
+
|
|
6
|
+
class RNTAlipayModule(private val reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
|
|
7
|
+
|
|
8
|
+
override fun getName(): String {
|
|
9
|
+
return "RNTAlipay"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@ReactMethod
|
|
13
|
+
fun pay(options: ReadableMap, promise: Promise) {
|
|
14
|
+
|
|
15
|
+
Thread {
|
|
16
|
+
|
|
17
|
+
val map = Arguments.createMap()
|
|
18
|
+
|
|
19
|
+
val alipay = PayTask(currentActivity)
|
|
20
|
+
val result = alipay.payV2(options.getString("order_info"), true)
|
|
21
|
+
|
|
22
|
+
val resultStatus = result["resultStatus"] ?: ""
|
|
23
|
+
if (resultStatus == "9000") {
|
|
24
|
+
map.putInt("code", 0)
|
|
25
|
+
map.putString("msg", "success")
|
|
26
|
+
map.putString("data", result["result"] ?: "")
|
|
27
|
+
} else {
|
|
28
|
+
map.putInt("code", 1)
|
|
29
|
+
map.putString("msg", result["memo"] ?: "")
|
|
30
|
+
}
|
|
31
|
+
promise.resolve(map)
|
|
32
|
+
|
|
33
|
+
}.start()
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
package com.github.reactnativehero.alipay
|
|
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
|
+
class RNTAlipayPackage : ReactPackage {
|
|
9
|
+
|
|
10
|
+
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
|
11
|
+
return listOf<NativeModule>(RNTAlipayModule(reactContext))
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
|
15
|
+
return emptyList()
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
package/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import { NativeEventEmitter, NativeModules, Platform } from 'react-native'
|
|
3
|
+
|
|
4
|
+
const { RNTAlipay } = NativeModules
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 支付
|
|
8
|
+
*/
|
|
9
|
+
export function pay(options) {
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
RNTAlipay
|
|
12
|
+
.pay(options)
|
|
13
|
+
.then(data => {
|
|
14
|
+
resolve(data)
|
|
15
|
+
})
|
|
16
|
+
})
|
|
17
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#import <UIKit/UIKit.h>
|
|
2
|
+
#import <React/RCTConvert.h>
|
|
3
|
+
#import <AlipaySDK/AlipaySDK.h>
|
|
4
|
+
|
|
5
|
+
@implementation RNTAlipay
|
|
6
|
+
|
|
7
|
+
+ (BOOL)handleOpenURL:(UIApplication *)application openURL:(NSURL *)url
|
|
8
|
+
options:(NSDictionary<NSString*, id> *)options {
|
|
9
|
+
if ([url.host isEqualToString:@"safepay"]) {
|
|
10
|
+
// 跳转支付宝客户端进行支付,处理支付结果
|
|
11
|
+
[[AlipaySDK defaultService] processOrderWithPaymentResult:url standbyCallback:^(NSDictionary *resultDic) {
|
|
12
|
+
NSLog(@"result = %@", resultDic);
|
|
13
|
+
}];
|
|
14
|
+
}
|
|
15
|
+
return NO;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
+ (BOOL)requiresMainQueueSetup {
|
|
19
|
+
return YES;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
- (dispatch_queue_t)methodQueue {
|
|
23
|
+
return dispatch_queue_create("com.github.reactnativehero.alipay", DISPATCH_QUEUE_SERIAL);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
RCT_EXPORT_MODULE(RNTAlipay);
|
|
27
|
+
|
|
28
|
+
RCT_EXPORT_METHOD(pay:(NSDictionary*)options
|
|
29
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
30
|
+
reject:(RCTPromiseRejectBlock)reject) {
|
|
31
|
+
|
|
32
|
+
NSString *orderInfo = [RCTConvert NSString:options[@"order_info"]];
|
|
33
|
+
NSString *appScheme = [RCTConvert NSString:options[@"app_scheme"]];
|
|
34
|
+
|
|
35
|
+
[[AlipaySDK defaultService] payOrder:orderString fromScheme:appScheme callback:^(NSDictionary *resultDic) {
|
|
36
|
+
NSLog(@"reslut = %@", resultDic);
|
|
37
|
+
}];
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@end
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 50;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
1EC4B2E624B89BC600192AB7 /* RNTAlipay.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4B2E524B89BC600192AB7 /* RNTAlipay.m */; };
|
|
11
|
+
1EC4B2E724B89BC600192AB7 /* RNTAlipay.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 1EC4B2E424B89BC600192AB7 /* RNTAlipay.h */; };
|
|
12
|
+
/* End PBXBuildFile section */
|
|
13
|
+
|
|
14
|
+
/* Begin PBXCopyFilesBuildPhase section */
|
|
15
|
+
1EC4B2DF24B89BC600192AB7 /* CopyFiles */ = {
|
|
16
|
+
isa = PBXCopyFilesBuildPhase;
|
|
17
|
+
buildActionMask = 2147483647;
|
|
18
|
+
dstPath = "include/$(PRODUCT_NAME)";
|
|
19
|
+
dstSubfolderSpec = 16;
|
|
20
|
+
files = (
|
|
21
|
+
1EC4B2E724B89BC600192AB7 /* RNTAlipay.h in CopyFiles */,
|
|
22
|
+
);
|
|
23
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
24
|
+
};
|
|
25
|
+
/* End PBXCopyFilesBuildPhase section */
|
|
26
|
+
|
|
27
|
+
/* Begin PBXFileReference section */
|
|
28
|
+
1EC4B2E124B89BC600192AB7 /* libRNTAlipay.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNTAlipay.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
29
|
+
1EC4B2E424B89BC600192AB7 /* RNTAlipay.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNTAlipay.h; sourceTree = "<group>"; };
|
|
30
|
+
1EC4B2E524B89BC600192AB7 /* RNTAlipay.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNTAlipay.m; sourceTree = "<group>"; };
|
|
31
|
+
/* End PBXFileReference section */
|
|
32
|
+
|
|
33
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
34
|
+
1EC4B2DE24B89BC600192AB7 /* Frameworks */ = {
|
|
35
|
+
isa = PBXFrameworksBuildPhase;
|
|
36
|
+
buildActionMask = 2147483647;
|
|
37
|
+
files = (
|
|
38
|
+
);
|
|
39
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
40
|
+
};
|
|
41
|
+
/* End PBXFrameworksBuildPhase section */
|
|
42
|
+
|
|
43
|
+
/* Begin PBXGroup section */
|
|
44
|
+
1EC4B2D824B89BC600192AB7 = {
|
|
45
|
+
isa = PBXGroup;
|
|
46
|
+
children = (
|
|
47
|
+
1EC4B2E324B89BC600192AB7 /* RNTAlipay */,
|
|
48
|
+
1EC4B2E224B89BC600192AB7 /* Products */,
|
|
49
|
+
);
|
|
50
|
+
sourceTree = "<group>";
|
|
51
|
+
};
|
|
52
|
+
1EC4B2E224B89BC600192AB7 /* Products */ = {
|
|
53
|
+
isa = PBXGroup;
|
|
54
|
+
children = (
|
|
55
|
+
1EC4B2E124B89BC600192AB7 /* libRNTAlipay.a */,
|
|
56
|
+
);
|
|
57
|
+
name = Products;
|
|
58
|
+
sourceTree = "<group>";
|
|
59
|
+
};
|
|
60
|
+
1EC4B2E324B89BC600192AB7 /* RNTAlipay */ = {
|
|
61
|
+
isa = PBXGroup;
|
|
62
|
+
children = (
|
|
63
|
+
1EC4B2E424B89BC600192AB7 /* RNTAlipay.h */,
|
|
64
|
+
1EC4B2E524B89BC600192AB7 /* RNTAlipay.m */,
|
|
65
|
+
);
|
|
66
|
+
path = RNTAlipay;
|
|
67
|
+
sourceTree = "<group>";
|
|
68
|
+
};
|
|
69
|
+
/* End PBXGroup section */
|
|
70
|
+
|
|
71
|
+
/* Begin PBXNativeTarget section */
|
|
72
|
+
1EC4B2E024B89BC600192AB7 /* RNTAlipay */ = {
|
|
73
|
+
isa = PBXNativeTarget;
|
|
74
|
+
buildConfigurationList = 1EC4B2EA24B89BC600192AB7 /* Build configuration list for PBXNativeTarget "RNTAlipay" */;
|
|
75
|
+
buildPhases = (
|
|
76
|
+
1EC4B2DD24B89BC600192AB7 /* Sources */,
|
|
77
|
+
1EC4B2DE24B89BC600192AB7 /* Frameworks */,
|
|
78
|
+
1EC4B2DF24B89BC600192AB7 /* CopyFiles */,
|
|
79
|
+
);
|
|
80
|
+
buildRules = (
|
|
81
|
+
);
|
|
82
|
+
dependencies = (
|
|
83
|
+
);
|
|
84
|
+
name = RNTAlipay;
|
|
85
|
+
productName = RNTAlipay;
|
|
86
|
+
productReference = 1EC4B2E124B89BC600192AB7 /* libRNTAlipay.a */;
|
|
87
|
+
productType = "com.apple.product-type.library.static";
|
|
88
|
+
};
|
|
89
|
+
/* End PBXNativeTarget section */
|
|
90
|
+
|
|
91
|
+
/* Begin PBXProject section */
|
|
92
|
+
1EC4B2D924B89BC600192AB7 /* Project object */ = {
|
|
93
|
+
isa = PBXProject;
|
|
94
|
+
attributes = {
|
|
95
|
+
LastUpgradeCheck = 1150;
|
|
96
|
+
ORGANIZATIONNAME = musicode;
|
|
97
|
+
TargetAttributes = {
|
|
98
|
+
1EC4B2E024B89BC600192AB7 = {
|
|
99
|
+
CreatedOnToolsVersion = 11.5;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
buildConfigurationList = 1EC4B2DC24B89BC600192AB7 /* Build configuration list for PBXProject "RNTAlipay" */;
|
|
104
|
+
compatibilityVersion = "Xcode 9.3";
|
|
105
|
+
developmentRegion = en;
|
|
106
|
+
hasScannedForEncodings = 0;
|
|
107
|
+
knownRegions = (
|
|
108
|
+
en,
|
|
109
|
+
Base,
|
|
110
|
+
);
|
|
111
|
+
mainGroup = 1EC4B2D824B89BC600192AB7;
|
|
112
|
+
productRefGroup = 1EC4B2E224B89BC600192AB7 /* Products */;
|
|
113
|
+
projectDirPath = "";
|
|
114
|
+
projectRoot = "";
|
|
115
|
+
targets = (
|
|
116
|
+
1EC4B2E024B89BC600192AB7 /* RNTAlipay */,
|
|
117
|
+
);
|
|
118
|
+
};
|
|
119
|
+
/* End PBXProject section */
|
|
120
|
+
|
|
121
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
122
|
+
1EC4B2DD24B89BC600192AB7 /* Sources */ = {
|
|
123
|
+
isa = PBXSourcesBuildPhase;
|
|
124
|
+
buildActionMask = 2147483647;
|
|
125
|
+
files = (
|
|
126
|
+
1EC4B2E624B89BC600192AB7 /* RNTAlipay.m in Sources */,
|
|
127
|
+
);
|
|
128
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
129
|
+
};
|
|
130
|
+
/* End PBXSourcesBuildPhase section */
|
|
131
|
+
|
|
132
|
+
/* Begin XCBuildConfiguration section */
|
|
133
|
+
1EC4B2E824B89BC600192AB7 /* Debug */ = {
|
|
134
|
+
isa = XCBuildConfiguration;
|
|
135
|
+
buildSettings = {
|
|
136
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
137
|
+
CLANG_ANALYZER_NONNULL = YES;
|
|
138
|
+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
139
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
140
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
141
|
+
CLANG_ENABLE_MODULES = YES;
|
|
142
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
143
|
+
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
144
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
145
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
146
|
+
CLANG_WARN_COMMA = YES;
|
|
147
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
148
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
149
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
150
|
+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
151
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
152
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
153
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
154
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
155
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
156
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
157
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
158
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
159
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
160
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
161
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
162
|
+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
163
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
164
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
165
|
+
COPY_PHASE_STRIP = NO;
|
|
166
|
+
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
167
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
168
|
+
ENABLE_TESTABILITY = YES;
|
|
169
|
+
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
170
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
171
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
172
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
173
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
174
|
+
"DEBUG=1",
|
|
175
|
+
"$(inherited)",
|
|
176
|
+
);
|
|
177
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
178
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
179
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
180
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
181
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
182
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
183
|
+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
|
184
|
+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
|
185
|
+
MTL_FAST_MATH = YES;
|
|
186
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
187
|
+
SDKROOT = iphoneos;
|
|
188
|
+
};
|
|
189
|
+
name = Debug;
|
|
190
|
+
};
|
|
191
|
+
1EC4B2E924B89BC600192AB7 /* Release */ = {
|
|
192
|
+
isa = XCBuildConfiguration;
|
|
193
|
+
buildSettings = {
|
|
194
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
195
|
+
CLANG_ANALYZER_NONNULL = YES;
|
|
196
|
+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
197
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
198
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
199
|
+
CLANG_ENABLE_MODULES = YES;
|
|
200
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
201
|
+
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
202
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
203
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
204
|
+
CLANG_WARN_COMMA = YES;
|
|
205
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
206
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
207
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
208
|
+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
209
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
210
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
211
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
212
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
213
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
214
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
215
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
216
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
217
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
218
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
219
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
220
|
+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
221
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
222
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
223
|
+
COPY_PHASE_STRIP = NO;
|
|
224
|
+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
225
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
226
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
227
|
+
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
228
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
229
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
230
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
231
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
232
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
233
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
234
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
235
|
+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
|
236
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
237
|
+
MTL_FAST_MATH = YES;
|
|
238
|
+
SDKROOT = iphoneos;
|
|
239
|
+
VALIDATE_PRODUCT = YES;
|
|
240
|
+
};
|
|
241
|
+
name = Release;
|
|
242
|
+
};
|
|
243
|
+
1EC4B2EB24B89BC600192AB7 /* Debug */ = {
|
|
244
|
+
isa = XCBuildConfiguration;
|
|
245
|
+
buildSettings = {
|
|
246
|
+
CODE_SIGN_STYLE = Automatic;
|
|
247
|
+
DEVELOPMENT_TEAM = N276SVAZ33;
|
|
248
|
+
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../react-native/React/**";
|
|
249
|
+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
|
250
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
251
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
252
|
+
SKIP_INSTALL = YES;
|
|
253
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
|
254
|
+
};
|
|
255
|
+
name = Debug;
|
|
256
|
+
};
|
|
257
|
+
1EC4B2EC24B89BC600192AB7 /* Release */ = {
|
|
258
|
+
isa = XCBuildConfiguration;
|
|
259
|
+
buildSettings = {
|
|
260
|
+
CODE_SIGN_STYLE = Automatic;
|
|
261
|
+
DEVELOPMENT_TEAM = N276SVAZ33;
|
|
262
|
+
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../react-native/React/**";
|
|
263
|
+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
|
264
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
265
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
266
|
+
SKIP_INSTALL = YES;
|
|
267
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
|
268
|
+
};
|
|
269
|
+
name = Release;
|
|
270
|
+
};
|
|
271
|
+
/* End XCBuildConfiguration section */
|
|
272
|
+
|
|
273
|
+
/* Begin XCConfigurationList section */
|
|
274
|
+
1EC4B2DC24B89BC600192AB7 /* Build configuration list for PBXProject "RNTAlipay" */ = {
|
|
275
|
+
isa = XCConfigurationList;
|
|
276
|
+
buildConfigurations = (
|
|
277
|
+
1EC4B2E824B89BC600192AB7 /* Debug */,
|
|
278
|
+
1EC4B2E924B89BC600192AB7 /* Release */,
|
|
279
|
+
);
|
|
280
|
+
defaultConfigurationIsVisible = 0;
|
|
281
|
+
defaultConfigurationName = Release;
|
|
282
|
+
};
|
|
283
|
+
1EC4B2EA24B89BC600192AB7 /* Build configuration list for PBXNativeTarget "RNTAlipay" */ = {
|
|
284
|
+
isa = XCConfigurationList;
|
|
285
|
+
buildConfigurations = (
|
|
286
|
+
1EC4B2EB24B89BC600192AB7 /* Debug */,
|
|
287
|
+
1EC4B2EC24B89BC600192AB7 /* Release */,
|
|
288
|
+
);
|
|
289
|
+
defaultConfigurationIsVisible = 0;
|
|
290
|
+
defaultConfigurationName = Release;
|
|
291
|
+
};
|
|
292
|
+
/* End XCConfigurationList section */
|
|
293
|
+
};
|
|
294
|
+
rootObject = 1EC4B2D924B89BC600192AB7 /* Project object */;
|
|
295
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@react-native-hero/alipay",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "react native alipay",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/react-native-hero/alipay.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"react",
|
|
15
|
+
"native",
|
|
16
|
+
"alipay"
|
|
17
|
+
],
|
|
18
|
+
"author": "musicode",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/react-native-hero/alipay/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/react-native-hero/alipay#readme"
|
|
24
|
+
}
|