Skip to content

Commit b97b68f

Browse files
qvick1proGleb Volchetskiy
andauthored
Added capability to use lib as a static framework (#60)
Co-authored-by: Gleb Volchetskiy <g.volchetskiy@wowmaking.net>
1 parent b371900 commit b97b68f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ You can find available versions [here](https://github.com/wowmaking/react-native
6363
1. Add `pod 'RNIronSource', :path => '../node_modules/@wowmaking/react-native-iron-source'` to your `ios/Podfile`
6464
2. Run `pod install` while in `ios` directory
6565

66+
#### Allow iOS Static Frameworks
67+
If you are using Static Frameworks on iOS, you need to manually enable this for the project. To enable Static Framework support, add the following global to the top of your /ios/Podfile file:
68+
`$RNIronSourceAsStaticFramework = true`
69+
6670
##### Android
6771

6872
1. Open up `android/app/src/main/java/[...]/MainApplication.java`

RNIronSource.podspec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,11 @@ Pod::Spec.new do |s|
6868
ss.dependency "IronSourceVungleAdapter", "> 1"
6969
end
7070

71+
if defined?($RNIronSourceAsStaticFramework)
72+
Pod::UI.puts "#{s.name}: Using overridden static_framework value of '#{$RNIronSourceAsStaticFramework}'"
73+
s.static_framework = $RNIronSourceAsStaticFramework
74+
else
75+
s.static_framework = false
76+
end
77+
7178
end

0 commit comments

Comments
 (0)