@advergic-ads/react-native-sdk 1.0.2 → 1.0.3

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.
@@ -29,6 +29,8 @@ Pod::Spec.new do |s|
29
29
  # A `>=` floor (not `~>`) is used so future releases served at that single,
30
30
  # always-latest podspec URL keep resolving. 0.1.10 is the first build produced
31
31
  # with an Xcode 16-compatible toolchain (earlier 0.1.x were built with Xcode
32
- # 26 / Swift 6.3 and could not be linked by Xcode 16.x consumers).
33
- s.dependency "AdvergicSDK", ">= 0.1.10"
32
+ # 26 / Swift 6.3 and could not be linked by Xcode 16.x consumers). 0.1.11
33
+ # drops the bundled Google-Mobile-Ads-SDK podspec dependency (GMA is baked
34
+ # into the xcframework) so apps don't link a duplicate copy of GMA/UMP.
35
+ s.dependency "AdvergicSDK", ">= 0.1.11"
34
36
  end
@@ -18,13 +18,18 @@ android {
18
18
  }
19
19
  }
20
20
 
21
- repositories {
22
- flatDir {
23
- // Try multiple locations for the AAR
24
- dirs file("${projectDir}/libs")
25
- dirs file("${projectDir.absolutePath}/../libs")
26
- dirs file("${rootDir}/app/libs")
27
- dirs file(rootDir).parentFile.absolutePath + "/node_modules/@advergic/advergic-react-native/android/libs"
21
+ // The bundled Advergic SDK AAR is consumed as an `api` dependency below, which
22
+ // means it propagates onto the host app's (:app) compile/runtime classpath.
23
+ // A `flatDir` repository is per-project, so declaring it only here would leave
24
+ // :app unable to resolve `:advergic-sdk:` ("Could not find :advergic-sdk:").
25
+ // Inject the flatDir repository into every project of the consuming build so
26
+ // the AAR is resolvable wherever it leaks transitively.
27
+ def advergicAarDir = file("${projectDir}/libs")
28
+ rootProject.allprojects {
29
+ repositories {
30
+ flatDir {
31
+ dirs advergicAarDir
32
+ }
28
33
  }
29
34
  }
30
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@advergic-ads/react-native-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Advergic React Native SDK - Integrate Prebid header bidding and mobile advertising into your React Native apps",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -10,9 +10,7 @@ module.exports = {
10
10
  packageImportPath: "import com.advergic.reactnative.AdvergicReactNativePackage;",
11
11
  packageInstance: "new AdvergicReactNativePackage()",
12
12
  },
13
- ios: {
14
- podspecPath: "AdvergicReactNative.podspec",
15
- },
13
+ ios: {},
16
14
  },
17
15
  },
18
16
  };