@traqio/react-native 0.2.0 → 0.2.1

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,19 @@ 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
+ - Manual: `Traqio.trackAdRevenue({ valueMicros, currency, … })` / `Traqio.trackMaxAdRevenue({ revenue, … })`. Never together with the option for the same network, or impressions count twice. `testAds: true` while on test ad units.
122
+
123
+ Details, the manual fallback and the automation level of every platform: https://traqio.app/docs/integrations/admob
124
+
112
125
  ## Debug builds
113
126
 
114
127
  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.1'
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.1"
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.1",
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.4.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@react-native-async-storage/async-storage": ">=1.21.0",