@vynix-org/react-native-ads-sdk 0.1.2 → 0.1.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.
package/android/build.gradle
CHANGED
|
@@ -12,7 +12,7 @@ buildscript {
|
|
|
12
12
|
classpath "com.android.tools.build:gradle:8.7.2"
|
|
13
13
|
// noinspection DifferentKotlinGradleVersion
|
|
14
14
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
|
|
15
|
-
classpath("com.google.gms:google-services:4.4.0")
|
|
15
|
+
// classpath("com.google.gms:google-services:4.4.0")
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -21,7 +21,7 @@ apply plugin: "com.android.library"
|
|
|
21
21
|
apply plugin: "kotlin-android"
|
|
22
22
|
|
|
23
23
|
apply plugin: "com.facebook.react"
|
|
24
|
-
apply plugin: "com.google.gms.google-services"
|
|
24
|
+
// apply plugin: "com.google.gms.google-services"
|
|
25
25
|
|
|
26
26
|
def getExtOrIntegerDefault(name) {
|
|
27
27
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["AdsSdk_" + name]).toInteger()
|
|
@@ -66,14 +66,23 @@ android {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
69
|
+
// allprojects {
|
|
70
|
+
// repositories {
|
|
71
|
+
// mavenCentral()
|
|
72
|
+
// google()
|
|
73
|
+
// maven {
|
|
74
|
+
// url = uri("https://android-sdk.is.com/")
|
|
75
|
+
// }
|
|
76
|
+
// maven { url "https://artifacts.applovin.com/android" }
|
|
77
|
+
|
|
78
|
+
// maven {
|
|
79
|
+
// url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea"
|
|
80
|
+
// }
|
|
81
|
+
// maven {
|
|
82
|
+
// url = uri("https://artifact.bytedance.com/repository/pangle/")
|
|
83
|
+
// }
|
|
84
|
+
// }
|
|
85
|
+
// }
|
|
77
86
|
|
|
78
87
|
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
79
88
|
|
|
@@ -82,8 +91,8 @@ dependencies {
|
|
|
82
91
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
83
92
|
|
|
84
93
|
// Must-have
|
|
85
|
-
api 'com.google.ads.mediation:facebook:6.17.0.0'
|
|
86
|
-
api 'com.google.ads.mediation:applovin:
|
|
94
|
+
// api 'com.google.ads.mediation:facebook:6.17.0.0'
|
|
95
|
+
// api 'com.google.ads.mediation:applovin:13.4.0.1'
|
|
87
96
|
|
|
88
97
|
// Game
|
|
89
98
|
// api 'com.google.ads.mediation:unity:4.12.2.0'
|
|
@@ -93,7 +102,7 @@ dependencies {
|
|
|
93
102
|
// api 'com.google.ads.mediation:vungle:7.4.1.0'
|
|
94
103
|
|
|
95
104
|
// Châu Á focused
|
|
96
|
-
api 'com.google.ads.mediation:pangle:
|
|
105
|
+
// api 'com.google.ads.mediation:pangle:7.7.0.2.0'
|
|
97
106
|
// Mintegral (Mobvista)
|
|
98
107
|
// api 'com.google.ads.mediation:mintegral:16.7.71.0'
|
|
99
108
|
// api 'com.google.ads.mediation:inmobi:10.7.5.0'
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
-
|
|
3
|
-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
4
|
-
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
2
|
+
|
|
5
3
|
</manifest>
|
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
package com.adssdk
|
|
2
2
|
|
|
3
3
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
4
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
4
5
|
import com.facebook.react.module.annotations.ReactModule
|
|
5
6
|
|
|
6
7
|
@ReactModule(name = AdsSdkModule.NAME)
|
|
7
8
|
class AdsSdkModule(reactContext: ReactApplicationContext) :
|
|
8
|
-
|
|
9
|
+
ReactContextBaseJavaModule(reactContext) {
|
|
9
10
|
|
|
10
11
|
override fun getName(): String {
|
|
11
12
|
return NAME
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
// Example method
|
|
15
|
-
// See https://reactnative.dev/docs/native-modules-android
|
|
16
|
-
override fun multiply(a: Double, b: Double): Double {
|
|
17
|
-
return a * b
|
|
18
|
-
}
|
|
19
|
-
|
|
20
15
|
companion object {
|
|
21
16
|
const val NAME = "AdsSdk"
|
|
22
17
|
}
|
|
23
|
-
}
|
|
18
|
+
}
|