Skip to content

Commit 0eebaa7

Browse files
committed
feat: v3
chore(ios): bump pods 10.7.0 chore(android): bump dom deps 31.2.3 chore(android): move package native-src into platforms note min iOS bump 12 note min Android bump 19
1 parent 0d14d73 commit 0eebaa7

File tree

732 files changed

+2144
-13949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

732 files changed

+2144
-13949
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plugins",
3-
"version": "2.5.2",
3+
"version": "3.0.0-alpha.0",
44
"license": "MIT",
55
"scripts": {
66
"postinstall": "husky install && npx ts-patch install",

packages/firebase-admob/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/firebase-admob",
3-
"version": "2.5.2",
3+
"version": "3.0.0-alpha.0",
44
"description": "NativeScript Firebase - Admob",
55
"main": "index",
66
"typings": "index.d.ts",

packages/firebase-admob/src-native/android/admob/src/main/AndroidManifest.xml renamed to packages/firebase-admob/platforms/android/AndroidManifest.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="org.nativescript.firebase.admob">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<uses-permission android:name="android.permission.INTERNET" />
65
<application android:hardwareAccelerated="true" />
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dependencies {
2-
implementation 'com.google.android.gms:play-services-ads:20.6.0'
2+
implementation 'com.google.android.gms:play-services-ads:21.5.0'
33
implementation 'com.google.android.ump:user-messaging-platform:2.0.0'
4+
implementation 'androidx.core:core-ktx:1.6.0'
45
}
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ private const val ADMOB_ID_KEY = "adMobAppId"
8989

9090
private const val CONTENT_URL_KEY = "contentUrl"
9191
private const val KEYWORDS_KEY = "keywords"
92-
private const val LOCATION_KEY = "location"
93-
private const val LOCATION_LATITUDE_KEY = "lat"
94-
private const val LOCATION_LONGITUDE_KEY = "lon"
95-
private const val LOCATION_ACCURACY_KEY = "locationAccuracy"
9692
private const val NETWORK_EXTRAS_KEY = "networkExtras"
9793
private const val REQUEST_AGENT_KEY = "requestAgent"
9894
private const val REQUEST_NON_PERSONALIZED_ADS_ONLY_KEY = "requestNonPersonalizedAdsOnly"
@@ -804,22 +800,6 @@ class FirebaseAdmob {
804800
}
805801
}
806802

807-
json.optJSONObject(LOCATION_KEY)?.let {
808-
val location = Location("")
809-
if (it.has(LOCATION_LATITUDE_KEY)) {
810-
location.latitude = it.getDouble(LOCATION_LATITUDE_KEY)
811-
}
812-
813-
if (it.has(LOCATION_LONGITUDE_KEY)) {
814-
location.longitude = it.getDouble(LOCATION_LONGITUDE_KEY)
815-
}
816-
817-
if (it.has(LOCATION_ACCURACY_KEY)) {
818-
location.accuracy = it.getDouble(LOCATION_ACCURACY_KEY).toFloat()
819-
}
820-
adRequest.setLocation(location)
821-
}
822-
823803
val extras = Bundle()
824804

825805

Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
use_frameworks!
2-
pod 'Google-Mobile-Ads-SDK', '~> 9.10.0'
2+
pod 'Google-Mobile-Ads-SDK', '~> 10.2.0'

packages/firebase-admob/src-native/android/.gitignore

-15
This file was deleted.

packages/firebase-admob/src-native/android/.idea/.gitignore

-3
This file was deleted.

packages/firebase-admob/src-native/android/.idea/.name

-1
This file was deleted.

packages/firebase-admob/src-native/android/.idea/bolt.plugin.state.pref

-10
This file was deleted.

packages/firebase-admob/src-native/android/.idea/compiler.xml

-6
This file was deleted.

packages/firebase-admob/src-native/android/.idea/gradle.xml

-22
This file was deleted.

packages/firebase-admob/src-native/android/.idea/misc.xml

-9
This file was deleted.

packages/firebase-admob/src-native/android/.idea/vcs.xml

-6
This file was deleted.

0 commit comments

Comments
 (0)