@amplytools/react-native-amply-sdk 0.2.5 → 0.2.6

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.
@@ -1,11 +1,11 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'AmplyReactNative'
3
- s.version = '0.1.0-alpha.1'
3
+ s.version = '0.1.0'
4
4
  s.summary = 'React Native bridge for Amply SDK'
5
- s.homepage = 'https://github.com/amply/amply-react-native'
5
+ s.homepage = 'https://github.com/amply-tools/amply-react-native'
6
6
  s.license = { :type => 'MIT' }
7
7
  s.authors = { 'Amply' => 'opensource@amply.tools' }
8
- s.source = { :git => 'https://github.com/amply/amply-react-native.git', :tag => s.version.to_s }
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
11
  s.source_files = 'Sources/**/*.{swift,h,m,mm}'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplytools/react-native-amply-sdk",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
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": {
@@ -190,11 +190,21 @@ function generateModule(name, moduleConfig) {
190
190
 
191
191
  const iosConfig = moduleConfig.ios;
192
192
  if (iosConfig && iosConfig.sourceDir) {
193
+ const iosOutputDir = path.resolve(ROOT, iosConfig.sourceDir);
194
+
195
+ // Remove stale doubly-nested directory that causes duplicate symbols.
196
+ // Codegen outputs to {outputDir}/{libraryName}/, so a nested
197
+ // {outputDir}/{libraryName}/{libraryName}/ is always stale.
198
+ const staleNestedDir = path.join(iosOutputDir, libraryName, libraryName);
199
+ if (fs.existsSync(staleNestedDir)) {
200
+ fs.rmSync(staleNestedDir, {recursive: true});
201
+ }
202
+
193
203
  RNCodegen.generate(
194
204
  {
195
205
  libraryName,
196
206
  schema,
197
- outputDirectory: path.resolve(ROOT, iosConfig.sourceDir),
207
+ outputDirectory: iosOutputDir,
198
208
  moduleName: iosConfig.moduleName ?? libraryName,
199
209
  assumeNonnull: true,
200
210
  },