fix: Fix ios example error.
This commit is contained in:
Binary file not shown.
@@ -9,7 +9,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
///////////////// 支付宝标准版本支付SDK ///////////////////
|
||||
///////// version:15.8.08 motify:2022.02.15///////////
|
||||
///////// version:15.8.11 modify:2022.07.26///////////
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
@@ -4,14 +4,12 @@
|
||||
|
||||
@interface RNAlipay ()
|
||||
@property (nonatomic, copy) RCTPromiseResolveBlock payOrderResolve;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@implementation RNAlipay
|
||||
{
|
||||
NSString *alipayScheme;
|
||||
}
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
- (instancetype)init
|
||||
@@ -108,10 +106,19 @@ RCT_EXPORT_METHOD(getVersion: (RCTPromiseResolveBlock)resolve rejecter:(RCTPromi
|
||||
/*!
|
||||
* [warn][tid:main][RCTModuleData.mm:68] Module Alipay requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`.
|
||||
* In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.
|
||||
*/
|
||||
*/;
|
||||
+ (BOOL)requiresMainQueueSetup
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
// Don't compile this code when we build for the old architecture.
|
||||
#ifdef RCT_NEW_ARCH_ENABLED
|
||||
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
||||
(const facebook::react::ObjCTurboModule::InitParams &)params
|
||||
{
|
||||
return std::make_shared<facebook::react::NativeAwesomeModuleSpecJSI>(params);
|
||||
}
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
@@ -1,44 +0,0 @@
|
||||
require "json"
|
||||
|
||||
package = JSON.parse(File.read(File.join(__dir__, '..', "package.json")))
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "RNAlipay"
|
||||
s.version = package["version"]
|
||||
s.summary = package["description"]
|
||||
s.description = <<-DESC
|
||||
Alipay SDK for React Native
|
||||
DESC
|
||||
s.homepage = package['repository']['url']
|
||||
# brief license entry:
|
||||
s.license = package["license"]
|
||||
s.author = { package["author"]["name"] => package["author"]["email"] }
|
||||
# optional - use expanded license entry instead:
|
||||
# s.license = { :type => "MIT", :file => "LICENSE" }
|
||||
s.platforms = { :ios => "9.0" }
|
||||
s.source = { :git => "https://github.com/uiwjs/react-native-alipay.git", :tag => "#{s.version}" }
|
||||
|
||||
s.source_files = "**/*.{h,c,m,swift}"
|
||||
# s.source_files = "**/*.{h,m}"
|
||||
s.requires_arc = true
|
||||
|
||||
s.frameworks = "UIKit",
|
||||
s.frameworks = "Foundation",
|
||||
s.frameworks = "CFNetwork",
|
||||
s.frameworks = "SystemConfiguration",
|
||||
s.frameworks = "QuartzCore",
|
||||
s.frameworks = "CoreGraphics",
|
||||
s.frameworks = "CoreMotion",
|
||||
s.frameworks = "CoreTelephony",
|
||||
s.frameworks = "CoreText",
|
||||
s.frameworks = "WebKit"
|
||||
|
||||
s.dependency "React"
|
||||
s.resource = 'AlipaySDK.bundle'
|
||||
# s.source_files = "AlipaySDKiOS/AlipaySDK.framework/**/*"
|
||||
s.vendored_frameworks = 'AlipaySDK.framework'
|
||||
s.library = "c++", "z"
|
||||
# ...
|
||||
# s.dependency "..."
|
||||
end
|
||||
|
@@ -7,7 +7,7 @@
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
B9EB6BD424BDF5E6001A2514 /* AlipaySDK in Frameworks */ = {isa = PBXBuildFile; fileRef = B9EB6BCF24BDF342001A2514 /* AlipaySDK */; };
|
||||
7DE1E4C2289E2AB500722D10 /* AlipaySDK in Frameworks */ = {isa = PBXBuildFile; fileRef = B9EB6BCF24BDF342001A2514 /* AlipaySDK */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
@@ -34,7 +34,7 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B9EB6BD424BDF5E6001A2514 /* AlipaySDK in Frameworks */,
|
||||
7DE1E4C2289E2AB500722D10 /* AlipaySDK in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
Reference in New Issue
Block a user