@amplytools/react-native-amply-sdk 0.2.12 → 0.2.14

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.
@@ -8,7 +8,13 @@ Pod::Spec.new do |s|
8
8
  s.source = { :git => 'https://github.com/amply-tools/amply-react-native.git', :tag => s.version.to_s }
9
9
 
10
10
  s.platforms = { :ios => '15.1' }
11
- s.source_files = 'Sources/**/*.{swift,h,m,mm}'
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}'
12
18
 
13
19
  # React Native dependencies for TurboModules
14
20
  s.dependency 'React-Core'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplytools/react-native-amply-sdk",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
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",
@@ -17,7 +17,17 @@ module.exports = {
17
17
  packageInstance: 'new AmplyPackage()',
18
18
  cmakeListsPath: 'src/main/jni/CMakeLists.txt',
19
19
  },
20
- ios: null,
20
+ // iOS is intentionally OMITTED here, NOT set to null.
21
+ // RN CLI / expo-modules-autolinking auto-discovers the iOS pod via a
22
+ // top-level *.podspec at the package root (AmplyReactNative.podspec).
23
+ // Setting `ios: null` would explicitly opt OUT of iOS autolinking —
24
+ // pre-0.2.13 we did exactly that and survived only because
25
+ // `expo-module.config.json` pulled the pod through Expo autolinking;
26
+ // when we dropped that file in 0.2.12 the iOS pod stopped being linked
27
+ // (the 0.2.12 iOS regression).
28
+ // Setting `ios: { podspecPath: ... }` does NOT work either:
29
+ // expo-modules-autolinking's iosResolver ignores podspecPath and only
30
+ // scans the package root for *.podspec.
21
31
  },
22
32
  },
23
33
  commands: [],