Skip to content

Commit

Permalink
fix standalone view ios files
Browse files Browse the repository at this point in the history
  • Loading branch information
NMGuner committed Sep 28, 2023
1 parent c5dbfe4 commit 45399cb
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 27 deletions.
32 changes: 16 additions & 16 deletions ios/RNKlarnaMobileSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
objects = {

/* Begin PBXBuildFile section */
42BC05FF2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 42BC05FE2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.m */; };
42BC06032AC586C50044A9FE /* KlarnaStandaloneWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 42BC06022AC586C50044A9FE /* KlarnaStandaloneWebView.m */; };
42BC06052AC588180044A9FE /* KlarnaStandaloneWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 42BC06042AC588180044A9FE /* KlarnaStandaloneWebView.m */; };
42BC05FF2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm in Sources */ = {isa = PBXBuildFile; fileRef = 42BC05FE2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm */; };
42BC06032AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 42BC06022AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm */; };
42BC06052AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 42BC06042AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm */; };
7917D755255C45FB00E16799 /* PaymentViewWrapperTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7917D754255C45FB00E16799 /* PaymentViewWrapperTests.m */; };
7917D757255C45FB00E16799 /* libRNKlarnaMobileSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 134814201AA4EA6300B7C361 /* libRNKlarnaMobileSDK.a */; };
792F67C02AB8AD7D00675E18 /* PaymentViewWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 792F67BB2AB8AD7D00675E18 /* PaymentViewWrapper.mm */; };
Expand Down Expand Up @@ -46,11 +46,11 @@
19C9876CD048B49EB4361DB8 /* Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.release.xcconfig"; path = "Target Support Files/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.release.xcconfig"; sourceTree = "<group>"; };
3FC0A2F5614F1B06C1249CA3 /* Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.debug.xcconfig"; path = "Target Support Files/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.debug.xcconfig"; sourceTree = "<group>"; };
42BC05FD2AC57D950044A9FE /* KlarnaStandaloneWebViewManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KlarnaStandaloneWebViewManager.h; sourceTree = "<group>"; };
42BC05FE2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KlarnaStandaloneWebViewManager.m; sourceTree = "<group>"; };
42BC06002AC585950044A9FE /* KlarnaStandaloneWebView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KlarnaStandaloneWebView.h; sourceTree = "<group>"; };
42BC06012AC5866B0044A9FE /* KlarnaStandaloneWebView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KlarnaStandaloneWebView.h; sourceTree = "<group>"; };
42BC06022AC586C50044A9FE /* KlarnaStandaloneWebView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KlarnaStandaloneWebView.m; sourceTree = "<group>"; };
42BC06042AC588180044A9FE /* KlarnaStandaloneWebView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KlarnaStandaloneWebView.m; sourceTree = "<group>"; };
42BC05FE2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = KlarnaStandaloneWebViewManager.mm; sourceTree = "<group>"; };
42BC06002AC585950044A9FE /* KlarnaStandaloneWebViewWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KlarnaStandaloneWebViewWrapper.h; sourceTree = "<group>"; };
42BC06012AC5866B0044A9FE /* KlarnaStandaloneWebViewWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KlarnaStandaloneWebViewWrapper.h; sourceTree = "<group>"; };
42BC06022AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = KlarnaStandaloneWebViewWrapper.mm; sourceTree = "<group>"; };
42BC06042AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = KlarnaStandaloneWebViewWrapper.mm; sourceTree = "<group>"; };
7917D752255C45FB00E16799 /* RNKlarnaMobileSDKTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNKlarnaMobileSDKTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
7917D754255C45FB00E16799 /* PaymentViewWrapperTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PaymentViewWrapperTests.m; sourceTree = "<group>"; };
7917D756255C45FB00E16799 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -125,7 +125,7 @@
B3E7B5881CC2AC0600A0062D /* KlarnaPaymentViewManager.h */,
B3E7B5891CC2AC0600A0062D /* KlarnaPaymentViewManager.mm */,
42BC05FD2AC57D950044A9FE /* KlarnaStandaloneWebViewManager.h */,
42BC05FE2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.m */,
42BC05FE2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm */,
9CDEDC2923475BAC006C9C97 /* view */,
);
path = Sources;
Expand Down Expand Up @@ -160,8 +160,8 @@
children = (
792F67BB2AB8AD7D00675E18 /* PaymentViewWrapper.mm */,
792F67BC2AB8AD7D00675E18 /* PaymentViewWrapper.h */,
42BC06012AC5866B0044A9FE /* KlarnaStandaloneWebView.h */,
42BC06022AC586C50044A9FE /* KlarnaStandaloneWebView.m */,
42BC06012AC5866B0044A9FE /* KlarnaStandaloneWebViewWrapper.h */,
42BC06022AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm */,
);
path = newarch;
sourceTree = "<group>";
Expand All @@ -171,8 +171,8 @@
children = (
792F67BE2AB8AD7D00675E18 /* PaymentViewWrapper.mm */,
792F67BF2AB8AD7D00675E18 /* PaymentViewWrapper.h */,
42BC06002AC585950044A9FE /* KlarnaStandaloneWebView.h */,
42BC06042AC588180044A9FE /* KlarnaStandaloneWebView.m */,
42BC06002AC585950044A9FE /* KlarnaStandaloneWebViewWrapper.h */,
42BC06042AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm */,
);
path = oldarch;
sourceTree = "<group>";
Expand Down Expand Up @@ -380,11 +380,11 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
42BC06032AC586C50044A9FE /* KlarnaStandaloneWebView.m in Sources */,
42BC06032AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm in Sources */,
B3E7B58A1CC2AC0600A0062D /* KlarnaPaymentViewManager.mm in Sources */,
792F67C02AB8AD7D00675E18 /* PaymentViewWrapper.mm in Sources */,
42BC06052AC588180044A9FE /* KlarnaStandaloneWebView.m in Sources */,
42BC05FF2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.m in Sources */,
42BC06052AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm in Sources */,
42BC05FF2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm in Sources */,
792F67C12AB8AD7D00675E18 /* PaymentViewWrapper.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
2 changes: 1 addition & 1 deletion ios/Sources/KlarnaStandaloneWebViewManager.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import <React/RCTViewManager.h>

@interface KlarnaStandaloneWebViewManager : RCTViewComponentView
@interface KlarnaStandaloneWebViewManager : RCTViewManager

@end
4 changes: 2 additions & 2 deletions ios/Sources/KlarnaStandaloneWebViewManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@


#ifdef RCT_NEW_ARCH_ENABLED
#import "view/newarch/KlarnaStandaloneWebView.h"
#import "view/newarch/KlarnaStandaloneWebViewWrapper.h"
#else
#import "view/oldarch/KlarnaStandaloneWebView.h"
#import "view/oldarch/KlarnaStandaloneWebViewWrapper.h"
#endif

@implementation KlarnaStandaloneWebViewManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

NS_ASSUME_NONNULL_BEGIN

@interface KlarnaStandaloneWebView : RCTViewComponentView
@interface KlarnaStandaloneWebViewWrapper : RCTViewComponentView

@property (nonatomic, weak) RCTUIManager* uiManager;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if RCT_NEW_ARCH_ENABLED

#import "KlarnaStandaloneWebView.h"
#import "KlarnaStandaloneWebViewWrapper.h"

#import <AVFoundation/AVFoundation.h>
#import <KlarnaMobileSDK/KlarnaMobileSDK-Swift.h>
Expand All @@ -15,11 +15,13 @@

using namespace facebook::react;

@interface KlarnaStandaloneWebView ()
@interface KlarnaStandaloneWebViewWrapper ()

@end

@implementation KlarnaStandaloneWebView
@implementation KlarnaStandaloneWebViewWrapper

@end

#endif

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

NS_ASSUME_NONNULL_BEGIN

@interface KlarnaStandaloneWebView : UIView
@interface KlarnaStandaloneWebViewWrapper : UIView

@property (nonatomic, strong) NSString* returnUrl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#if !RCT_NEW_ARCH_ENABLED

#import "KlarnaStandaloneWebView.h"
#import "KlarnaStandaloneWebViewWrapper.h"

#import <KlarnaMobileSDK/KlarnaMobileSDK-Swift.h>
#import <React/RCTLog.h>

@interface KlarnaStandaloneWebView ()
@interface KlarnaStandaloneWebViewWrapper ()

@property (nonatomic, strong) KlarnaStandaloneWebView* klarnaStandaloneWebView;

@end

@implementation KlarnaStandaloneWebView
@implementation KlarnaStandaloneWebViewWrapper

#pragma mark - React Native Overrides

Expand Down

0 comments on commit 45399cb

Please sign in to comment.