@amplytools/react-native-amply-sdk 0.2.13 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Pod::Spec.new do |s|
|
|
2
|
+
s.name = 'AmplyReactNative'
|
|
3
|
+
s.version = '0.1.0'
|
|
4
|
+
s.summary = 'React Native bridge for Amply SDK'
|
|
5
|
+
s.homepage = 'https://github.com/amply-tools/amply-react-native'
|
|
6
|
+
s.license = { :type => 'MIT' }
|
|
7
|
+
s.authors = { 'Amply' => 'opensource@amply.tools' }
|
|
8
|
+
s.source = { :git => 'https://github.com/amply-tools/amply-react-native.git', :tag => s.version.to_s }
|
|
9
|
+
|
|
10
|
+
s.platforms = { :ios => '15.1' }
|
|
11
|
+
|
|
12
|
+
# NOTE: This podspec MUST live at the package root (alongside package.json)
|
|
13
|
+
# so that RN CLI / expo-modules-autolinking auto-discovery finds it.
|
|
14
|
+
# Their iosResolver only scans the package root (non-recursively) for
|
|
15
|
+
# *.podspec files and ignores `react-native.config.js#ios.podspecPath`.
|
|
16
|
+
# Source files stay under ios/Sources/ — we just reference them from here.
|
|
17
|
+
s.source_files = 'ios/Sources/**/*.{swift,h,m,mm}'
|
|
18
|
+
|
|
19
|
+
# React Native dependencies for TurboModules
|
|
20
|
+
s.dependency 'React-Core'
|
|
21
|
+
s.dependency 'ReactCommon/turbomodule/core'
|
|
22
|
+
s.dependency 'React-RCTFabric'
|
|
23
|
+
|
|
24
|
+
# Amply KMP SDK from CocoaPods
|
|
25
|
+
s.dependency 'AmplySDK', '~> 0.2.6'
|
|
26
|
+
|
|
27
|
+
s.libraries = 'c++'
|
|
28
|
+
s.pod_target_xcconfig = {
|
|
29
|
+
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
|
|
30
|
+
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
|
|
31
|
+
'DEFINES_MODULE' => 'YES',
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
# Enable modules for importing the AmplySDK framework
|
|
35
|
+
s.user_target_xcconfig = {
|
|
36
|
+
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
|
|
37
|
+
}
|
|
38
|
+
end
|
|
@@ -73,4 +73,8 @@ target_link_libraries(
|
|
|
73
73
|
fbjni::fbjni
|
|
74
74
|
)
|
|
75
75
|
|
|
76
|
+
# Required for Android 15 / Google Play 16 KB page-size policy.
|
|
77
|
+
# https://developer.android.com/guide/practices/page-sizes
|
|
78
|
+
target_link_options(AmplyReactNative PRIVATE "-Wl,-z,max-page-size=16384")
|
|
79
|
+
|
|
76
80
|
target_compile_reactnative_options(AmplyReactNative PRIVATE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amplytools/react-native-amply-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"description": "React Native SDK for Amply: Mobile SDK to orchestrate in-app experiences and campaigns remotely, without app releases",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"src/",
|
|
24
24
|
"plugin/",
|
|
25
25
|
"scripts/",
|
|
26
|
+
"AmplyReactNative.podspec",
|
|
26
27
|
"react-native.config.js",
|
|
27
28
|
"app.plugin.js",
|
|
28
29
|
"README.md",
|