@traqio/react-native 0.2.0 → 0.2.2

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.
package/README.md CHANGED
@@ -109,6 +109,20 @@ Traqio.init({ sdkKey: "SDK_KEY", endpoint: "https://api.traqio.app", collectAdve
109
109
 
110
110
  It is sent with the install only, matched hashed, and never used as the user's identity.
111
111
 
112
+ ## Ad revenue (AdMob, AppLovin MAX)
113
+
114
+ ```ts
115
+ Traqio.init({ /* … */ adRevenue: { admob: true, applovinMax: true } });
116
+ ```
117
+
118
+ - **react-native-google-mobile-ads (12.4+)**: interstitial, rewarded, rewarded interstitial, app open and native ads are **automatic**. A `<BannerAd>` takes one prop: `onPaid={Traqio.admobPaid(AD_UNIT_ID)}`.
119
+ - **react-native-applovin-max (5+)**: interstitial, rewarded, app open, programmatic banners and MRECs are **automatic**, beside your own listeners. A MAX `<AdView>` takes one prop: `onAdRevenuePaid={Traqio.maxRevenuePaid}`.
120
+ - Neither library becomes a dependency: Traqio listens to the events they already emit.
121
+ - **Turn the option on, then call nothing by hand for that network.** Once Traqio captures it, the manual calls for it (`trackAdRevenue`, `trackMaxAdRevenue`, and `admobPaid` on a format already captured) are ignored with one warning in the log, so an impression can never be counted twice. The two one-line props above stay valid: they cover what the capture cannot reach.
122
+ - Manual, with the option off: `Traqio.trackAdRevenue({ valueMicros, currency, … })` / `Traqio.trackMaxAdRevenue({ revenue, … })`. `testAds: true` while on test ad units.
123
+
124
+ Details, the manual fallback and the automation level of every platform: https://traqio.app/docs/integrations/admob
125
+
112
126
  ## Debug builds
113
127
 
114
128
  Traffic from development builds is flagged as debug traffic. The SDK turns it on by itself under `__DEV__` (a Metro dev bundle), and when the native module reports a debuggable app (Android), a DEBUG build (iOS) or a simulator / emulator. `Traqio.init({ ..., debug: true })` or `debug: false` overrides the detection; `Traqio.isDebug` tells which mode is on. The install is remembered per mode, so a release build installed over a debug build on the same device still reports its own install.
@@ -6,7 +6,7 @@ apply plugin: 'kotlin-android'
6
6
  apply plugin: 'maven-publish'
7
7
 
8
8
  group = 'io.khufu.traqio'
9
- version = '0.2.0'
9
+ version = '0.2.2'
10
10
 
11
11
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
12
12
  apply from: expoModulesCorePlugin
@@ -28,7 +28,7 @@ android {
28
28
  defaultConfig {
29
29
  minSdk safeExtGet("minSdkVersion", 24)
30
30
  versionCode 1
31
- versionName "0.2.0"
31
+ versionName "0.2.2"
32
32
  }
33
33
 
34
34
  compileOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@traqio/react-native",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Traqio SDK for React Native / Expo — deterministic install attribution (Play Install Referrer) + SKAN. No IDFA, no fingerprinting.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -44,7 +44,7 @@
44
44
  "README.md"
45
45
  ],
46
46
  "dependencies": {
47
- "@traqio/core": "0.3.0"
47
+ "@traqio/core": "0.5.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@react-native-async-storage/async-storage": ">=1.21.0",