tapjoy-react-native-sdk 0.1.2 → 13.1.0
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 +7 -1
- package/android/build.gradle +1 -1
- package/example/android/app/build.gradle +1 -1
- package/example/ios/Podfile +0 -2
- package/example/ios/TapjoyReactNativeSdkExample/Info.plist +3 -3
- package/example/package.json +1 -1
- package/ios/TapjoyReactNativeSdk.swift +1 -1
- package/lib/commonjs/TJVersion.js +2 -2
- package/lib/commonjs/TJVersion.js.map +1 -1
- package/lib/module/TJVersion.js +2 -2
- package/lib/module/TJVersion.js.map +1 -1
- package/package.json +1 -1
- package/src/TJVersion.ts +2 -2
- package/tapjoy-react-native-sdk.podspec +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
Tapjoy React Native SDK
|
|
2
2
|
======================
|
|
3
|
+
React Native plugin for Tapjoy Offerwall SDK which supports Android & iOS platforms.
|
|
4
|
+
|
|
5
|
+
You can find the end user integration document [here](https://dev.tapjoy.com/en/reactnative-plugin/Quickstart).
|
|
3
6
|
|
|
4
7
|
## Module Development
|
|
5
8
|
### Setup Environment
|
|
@@ -37,7 +40,7 @@ yarn example android
|
|
|
37
40
|
```
|
|
38
41
|
|
|
39
42
|
### Javascript
|
|
40
|
-
`./src/index.ts` is the typescript module entry point.
|
|
43
|
+
`./src/index.ts` is the typescript module entry point.
|
|
41
44
|
|
|
42
45
|
### iOS
|
|
43
46
|
You can find `./ios/TapjoyReactNativeSdk.swift` and `./ios/TapjoyReactNativeSdk.m` for the iOS bridge logic.
|
|
@@ -56,6 +59,9 @@ In Xcode, use `Debug > Attach to Process` feature
|
|
|
56
59
|
### Android
|
|
57
60
|
In Android Studio, use `Run > Attach Debugger to Android Process` feature.
|
|
58
61
|
|
|
62
|
+
## Integration Document
|
|
63
|
+
[Tapjoy React Native SDK Integration Document](https://dev.tapjoy.com/en/reactnative-plugin/Quickstart).
|
|
64
|
+
|
|
59
65
|
## Resources
|
|
60
66
|
### Environment setup
|
|
61
67
|
https://reactnative.dev/docs/environment-setup
|
package/android/build.gradle
CHANGED
|
@@ -79,7 +79,7 @@ dependencies {
|
|
|
79
79
|
//noinspection GradleDynamicVersion
|
|
80
80
|
implementation 'com.facebook.react:react-native:0.71.4'
|
|
81
81
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
82
|
-
implementation 'com.tapjoy:tapjoy-android-sdk:13.0
|
|
82
|
+
implementation 'com.tapjoy:tapjoy-android-sdk:13.1.0'
|
|
83
83
|
implementation "com.google.android.gms:play-services-ads-identifier:18.0.1"
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -166,7 +166,7 @@ dependencies {
|
|
|
166
166
|
implementation jscFlavor
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
implementation 'com.tapjoy:tapjoy-android-sdk:13.0
|
|
169
|
+
implementation 'com.tapjoy:tapjoy-android-sdk:13.1.0'
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
package/example/ios/Podfile
CHANGED
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
51
51
|
</array>
|
|
52
52
|
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
<true/>
|
|
54
|
+
<key>NSUserTrackingUsageDescription</key>
|
|
55
|
+
<string>This allows us to deliver personalized ads for you.</string>
|
|
56
56
|
<key>UIUserInterfaceStyle</key>
|
|
57
57
|
<string>Light</string>
|
|
58
58
|
</dict>
|
package/example/package.json
CHANGED
|
@@ -195,7 +195,7 @@ class TapjoyReactNativeSdk: RCTEventEmitter {
|
|
|
195
195
|
- Parameter privacyValue: The privacy value string. eg. "1YNN" where 1 is char in string for the version, Y = YES, N = No, - = Not Applicable
|
|
196
196
|
*/
|
|
197
197
|
@objc func setUSPrivacy(_ privacyValue: String) {
|
|
198
|
-
Tapjoy.getPrivacyPolicy().
|
|
198
|
+
Tapjoy.getPrivacyPolicy().usPrivacy = privacyValue
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/**
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.TJVersion = void 0;
|
|
7
|
-
const REACT_LIBRARY_VERSION =
|
|
8
|
-
const REACT_LIBRARY_VERSION_SUFFIX =
|
|
7
|
+
const REACT_LIBRARY_VERSION = "13.1.0";
|
|
8
|
+
const REACT_LIBRARY_VERSION_SUFFIX = "";
|
|
9
9
|
class TJVersion {
|
|
10
10
|
// Returns the version of the plugin - eg: 1.0.0-alpha-rc1
|
|
11
11
|
static getPluginVersion() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["REACT_LIBRARY_VERSION","REACT_LIBRARY_VERSION_SUFFIX","TJVersion","getPluginVersion","exports","_default","default"],"sourceRoot":"../../src","sources":["TJVersion.ts"],"mappings":";;;;;;AAAA,MAAMA,qBAAqB,GAAG,
|
|
1
|
+
{"version":3,"names":["REACT_LIBRARY_VERSION","REACT_LIBRARY_VERSION_SUFFIX","TJVersion","getPluginVersion","exports","_default","default"],"sourceRoot":"../../src","sources":["TJVersion.ts"],"mappings":";;;;;;AAAA,MAAMA,qBAAqB,GAAG,QAAQ;AACtC,MAAMC,4BAA4B,GAAG,EAAE;AAEhC,MAAMC,SAAS,CAAC;EACrB;EACA,OAAOC,gBAAgBA,CAAA,EAAW;IAChC,IAAIF,4BAA4B,EAAE;MAChC,OAAOD,qBAAqB,GAAG,GAAG,GAAGC,4BAA4B;IACnE,CAAC,MAAM;MACL,OAAOD,qBAAqB;IAC9B;EACF;AACF;AAACI,OAAA,CAAAF,SAAA,GAAAA,SAAA;AAAA,IAAAG,QAAA,GAEcH,SAAS;AAAAE,OAAA,CAAAE,OAAA,GAAAD,QAAA"}
|
package/lib/module/TJVersion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const REACT_LIBRARY_VERSION =
|
|
2
|
-
const REACT_LIBRARY_VERSION_SUFFIX =
|
|
1
|
+
const REACT_LIBRARY_VERSION = "13.1.0";
|
|
2
|
+
const REACT_LIBRARY_VERSION_SUFFIX = "";
|
|
3
3
|
export class TJVersion {
|
|
4
4
|
// Returns the version of the plugin - eg: 1.0.0-alpha-rc1
|
|
5
5
|
static getPluginVersion() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["REACT_LIBRARY_VERSION","REACT_LIBRARY_VERSION_SUFFIX","TJVersion","getPluginVersion"],"sourceRoot":"../../src","sources":["TJVersion.ts"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,
|
|
1
|
+
{"version":3,"names":["REACT_LIBRARY_VERSION","REACT_LIBRARY_VERSION_SUFFIX","TJVersion","getPluginVersion"],"sourceRoot":"../../src","sources":["TJVersion.ts"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,QAAQ;AACtC,MAAMC,4BAA4B,GAAG,EAAE;AAEvC,OAAO,MAAMC,SAAS,CAAC;EACrB;EACA,OAAOC,gBAAgBA,CAAA,EAAW;IAChC,IAAIF,4BAA4B,EAAE;MAChC,OAAOD,qBAAqB,GAAG,GAAG,GAAGC,4BAA4B;IACnE,CAAC,MAAM;MACL,OAAOD,qBAAqB;IAC9B;EACF;AACF;AAEA,eAAeE,SAAS"}
|
package/package.json
CHANGED
package/src/TJVersion.ts
CHANGED
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency "TapjoySDK", "13.0
|
|
20
|
+
s.dependency "TapjoySDK", "13.1.0"
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
23
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|