Skip to content

Commit 798cf70

Browse files
Merge pull request #25 from SourcePointUSA/DIA-5998_build_pod_statically
DIa-5998 build pod statically
2 parents ad1c5b1 + e27f1e8 commit 798cf70

File tree

5 files changed

+15
-46
lines changed

5 files changed

+15
-46
lines changed

ReactNativeCmp.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Pod::Spec.new do |s|
1212
s.license = package["license"]
1313
s.authors = package["author"]
1414

15+
s.static_framework = true
16+
1517
s.platforms = { :ios => min_ios_version_supported }
1618
s.source = { :git => "https://github.com/SourcePointUSA/react-native-sourcepoint-cmp.git", :tag => "#{s.version}" }
1719

example/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ SPEC CHECKSUMS:
19891989
ReactAppDependencyProvider: 04d5eb15eb46be6720e17a4a7fa92940a776e584
19901990
ReactCodegen: c63eda03ba1d94353fb97b031fc84f75a0d125ba
19911991
ReactCommon: 76d2dc87136d0a667678668b86f0fca0c16fdeb0
1992-
ReactNativeCmp: 33c8b61e60031d937d4e8790b6b9ef18ef93786a
1992+
ReactNativeCmp: 8638f236ae3f8577336e6567afa06f834a891768
19931993
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
19941994
SPMobileCore: 220d109e404cb17169f7e26f2a34c6022b80079a
19951995
Yoga: c758bfb934100bb4bf9cbaccb52557cee35e8bdf

ios/ReactNativeCmp.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#import <ReactNativeCmpSpec/ReactNativeCmpSpec.h>
22
#import <React/RCTEventEmitter.h>
3-
#import "ReactNativeCmp-Swift.h"
3+
4+
#if __has_include(<ReactNativeCmp/ReactNativeCmp-Swift.h>)
5+
#import <ReactNativeCmp/ReactNativeCmp-Swift.h>
6+
#else
7+
#import "ReactNativeCmp-Swift.h"
8+
#endif
49

510
@interface ReactNativeCmp : NativeReactNativeCmpSpecBase <NativeReactNativeCmpSpec, ReactNativeCmpImplDelegate>
611

ios/ReactNativeCmp.mm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#import "ReactNativeCmp.h"
2-
#import "ReactNativeCmp-Swift.h"
2+
3+
#if __has_include(<ReactNativeCmp/ReactNativeCmp-Swift.h>)
4+
#import <ReactNativeCmp/ReactNativeCmp-Swift.h>
5+
#else
6+
#import "ReactNativeCmp-Swift.h"
7+
#endif
38

49
@implementation ReactNativeCmp {
510
ReactNativeCmpImpl *sdk;

sourcepoint-react-native-cmp.podspec

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)