emi-indo-cordova-plugin-admob 1.6.8 → 1.6.9
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/package.json +1 -1
- package/plugin.xml +2 -5
- package/src/android/emiAdmobPlugin.kt +6 -5
package/package.json
CHANGED
package/plugin.xml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
2
2
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
3
|
-
id="emi-indo-cordova-plugin-admob" version="1.6.
|
3
|
+
id="emi-indo-cordova-plugin-admob" version="1.6.9">
|
4
4
|
|
5
5
|
<name>emiAdmobPlugin</name>
|
6
6
|
<description>Cordova Plugin Admob Android IOS</description>
|
@@ -40,10 +40,7 @@
|
|
40
40
|
<uses-permission android:name="android.permission.INTERNET" />
|
41
41
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
42
42
|
</config-file>
|
43
|
-
|
44
|
-
<config-file parent="./application" target="AndroidManifest.xml">
|
45
|
-
<property android:name="android.adservices.AD_SERVICES_CONFIG" android:resource="@xml/gma_ad_services_config" tools:replace="android:resource" />
|
46
|
-
</config-file>
|
43
|
+
|
47
44
|
|
48
45
|
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
49
46
|
<activity
|
@@ -1132,8 +1132,8 @@ class emiAdmobPlugin : CordovaPlugin() {
|
|
1132
1132
|
editor.putString("IABTCF_TCString", consentString)
|
1133
1133
|
editor.putLong(LAST_ACCESS_SUFFIX, System.currentTimeMillis())
|
1134
1134
|
editor.apply()
|
1135
|
-
val key = "IABTCF_TCString"
|
1136
|
-
getString(
|
1135
|
+
//val key = "IABTCF_TCString"
|
1136
|
+
getString(consentString.toString())
|
1137
1137
|
callbackContext.success(userInfoJson)
|
1138
1138
|
cWebView!!.loadUrl("javascript:cordova.fireDocumentEvent('on.getIabTfc');")
|
1139
1139
|
} catch (e: Exception) {
|
@@ -1604,13 +1604,12 @@ class emiAdmobPlugin : CordovaPlugin() {
|
|
1604
1604
|
|
1605
1605
|
|
1606
1606
|
|
1607
|
-
|
1608
1607
|
// fix https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/issues/26
|
1609
1608
|
private fun bannerOverlapping() {
|
1610
1609
|
if (bannerView != null && mActivity != null && cWebView != null) {
|
1611
1610
|
mActivity!!.runOnUiThread {
|
1612
1611
|
try {
|
1613
|
-
|
1612
|
+
// val bannerHeightInPx = bannerView!!.height
|
1614
1613
|
val displayMetrics = DisplayMetrics()
|
1615
1614
|
mActivity!!.windowManager.defaultDisplay.getMetrics(displayMetrics)
|
1616
1615
|
val screenHeightInPx = displayMetrics.heightPixels
|
@@ -1634,6 +1633,8 @@ class emiAdmobPlugin : CordovaPlugin() {
|
|
1634
1633
|
|
1635
1634
|
|
1636
1635
|
|
1636
|
+
|
1637
|
+
|
1637
1638
|
private val bannerPaidAdListener = OnPaidEventListener { adValue ->
|
1638
1639
|
val valueMicros = adValue.valueMicros
|
1639
1640
|
val currencyCode = adValue.currencyCode
|
@@ -2005,7 +2006,7 @@ class emiAdmobPlugin : CordovaPlugin() {
|
|
2005
2006
|
}
|
2006
2007
|
return sb.toString().uppercase(Locale.getDefault())
|
2007
2008
|
} catch (ex: NoSuchAlgorithmException) {
|
2008
|
-
|
2009
|
+
ex.printStackTrace();
|
2009
2010
|
return null
|
2010
2011
|
}
|
2011
2012
|
}
|