diff --git a/RNSumUp.podspec b/RNSumUp.podspec new file mode 100644 index 0000000..43ba7dd --- /dev/null +++ b/RNSumUp.podspec @@ -0,0 +1,22 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + +Pod::Spec.new do |s| + s.name = "RNSumUp" + s.version = package['version'] + s.summary = package['description'] + s.license = package['license'] + + s.authors = package['author'] + s.homepage = package['repository']['url'] + s.platform = :ios, "9.0" + s.ios.deployment_target = '9.0' + s.tvos.deployment_target = '10.0' + + s.source = { :git => "https://github.com/wavyapp/react-native-sum-up.git", :tag => "v#{s.version}" } + s.source_files = "ios/**/*.{h,m}" + + s.dependency 'React' + s.dependency 'SumUpSDK' +end diff --git a/ios/RNSumUp.m b/ios/RNSumUp.m index 8bdcd6f..c3fddd8 100644 --- a/ios/RNSumUp.m +++ b/ios/RNSumUp.m @@ -7,7 +7,6 @@ // #import "RNSumUp.h" -#import "AppDelegate.h" @implementation RCTConvert (SMPPaymentOptions) diff --git a/ios/RNSumUp.xcodeproj/project.pbxproj b/ios/RNSumUp.xcodeproj/project.pbxproj index 60c2944..9cd258a 100644 --- a/ios/RNSumUp.xcodeproj/project.pbxproj +++ b/ios/RNSumUp.xcodeproj/project.pbxproj @@ -95,6 +95,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, ); mainGroup = 58B511D21A9E6C8500147676; @@ -205,12 +206,21 @@ 58B511F01A9E6C8500147676 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SRCROOT)/../node_modules/react-native/**", + "$(PROJECT_DIR)/../../../ios/Pods/SumUpSDK/SumUpSDK.embeddedframework", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); HEADER_SEARCH_PATHS = ( "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "$(SRCROOT)/../../../React/**", - "$(SRCROOT)/../../react-native/React/**", - "$(SRCROOT)/../../../ios/**", + "$(SRCROOT)/../react-native/React/**", + "$(SRCROOT)/../node_modules/react-native/React/**", + "$(SRCROOT)/../node_modules/rn-sumup/ios", + "$(SRCROOT)/Pods/Headers/**", + "$(SRCROOT)/../ios/Pods/Headers/**", ); LIBRARY_SEARCH_PATHS = "$(inherited)"; OTHER_LDFLAGS = "-ObjC"; @@ -222,12 +232,17 @@ 58B511F11A9E6C8500147676 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(SRCROOT)/../node_modules/react-native/**", + "$(PROJECT_DIR)/../../../ios/Pods/SumUpSDK/SumUpSDK.embeddedframework", + ); HEADER_SEARCH_PATHS = ( "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "$(SRCROOT)/../../../React/**", - "$(SRCROOT)/../../react-native/React/**", - "$(SRCROOT)/../../../ios/**", + "$(SRCROOT)/../react-native/React/**", + "$(SRCROOT)/../node_modules/react-native/React/**", + "$(SRCROOT)/../node_modules/rn-sumup/ios", + "$(SRCROOT)/Pods/Headers/**", + "$(SRCROOT)/../ios/Pods/Headers/**", ); LIBRARY_SEARCH_PATHS = "$(inherited)"; OTHER_LDFLAGS = "-ObjC"; diff --git a/ios/RNSumUp.xcworkspace/contents.xcworkspacedata b/ios/RNSumUp.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 3daf14b..0000000 --- a/ios/RNSumUp.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,9 +0,0 @@ -// !$*UTF8*$! - - - - - - \ No newline at end of file diff --git a/package.json b/package.json index f9697ca..45de942 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rn-sumup", - "version": "1.0.1", + "version": "1.1.0", "description": "SumUpSDK Wrapper for React Native.", "main": "index.js", "scripts": {