@capacitor-community/admob 4.2.0 → 5.0.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 CHANGED
@@ -42,11 +42,17 @@ Made with [contributors-img](https://contrib.rocks).
42
42
  | **Android** | ![](demo/screenshots/md_banner.png) | ![](demo/screenshots/md_interstitial.png) | ![](demo/screenshots/md_reward.png) |
43
43
 
44
44
  ## Installation
45
+ If you use capacitor 5:
46
+
47
+ ```
48
+ % npm install --save @capacitor-community/admob@5.0.0
49
+ % npx cap update
50
+ ```
45
51
 
46
52
  If you use capacitor 4:
47
53
 
48
54
  ```
49
- % npm install --save @capacitor-community/admob@latest
55
+ % npm install --save @capacitor-community/admob@4.0.0
50
56
  % npx cap update
51
57
  ```
52
58
 
@@ -79,7 +85,8 @@ Don't forget to replace `[APP_ID]` by your AdMob application Id.
79
85
 
80
86
  This plugin will use the following project variables (defined in your app's `variables.gradle` file):
81
87
 
82
- - `$playServicesAdsVersion` version of `com.google.android.gms:play-services-ads` (default: `21.1.0`)
88
+ - `playServicesAdsVersion` version of `com.google.android.gms:play-services-ads` (default: `22.0.0`)
89
+ - `androidxCoreKTXVersion`: version of `androidx.core:core-ktx` (default: `1.10.0`)
83
90
 
84
91
  ### iOS configuration
85
92
 
@@ -1,21 +1,21 @@
1
1
  ext {
2
2
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.2'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
4
4
  androidxCoordinatorLayoutVersion = project.hasProperty('androidxCoordinatorLayoutVersion') ? rootProject.ext.androidxCoordinatorLayoutVersion : '1.2.0'
5
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
6
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
7
- playServicesAdsVersion = project.hasProperty('playServicesAdsVersion') ? rootProject.ext.playServicesAdsVersion : '21.5.0'
8
-
5
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
6
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
7
+ playServicesAdsVersion = project.hasProperty('playServicesAdsVersion') ? rootProject.ext.playServicesAdsVersion : '22.0.0'
8
+ androidxCoreKTXVersion = project.hasProperty('androidxCoreKTXVersion') ? rootProject.ext.androidxCoreKTXVersion : '1.10.0'
9
9
  }
10
10
 
11
11
  buildscript {
12
- ext.kotlin_version = '1.5.21'
12
+ ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.8.20'
13
13
  repositories {
14
14
  google()
15
15
  mavenCentral()
16
16
  }
17
17
  dependencies {
18
- classpath 'com.android.tools.build:gradle:7.2.1'
18
+ classpath 'com.android.tools.build:gradle:8.0.0'
19
19
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
20
20
  }
21
21
  }
@@ -24,10 +24,11 @@ apply plugin: 'com.android.library'
24
24
  apply plugin: 'kotlin-android'
25
25
 
26
26
  android {
27
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
27
+ namespace "com.getcapacitor.community.admob.admob"
28
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
28
29
  defaultConfig {
29
30
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
30
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
31
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
31
32
  versionCode 1
32
33
  versionName "1.0"
33
34
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -42,8 +43,8 @@ android {
42
43
  abortOnError false
43
44
  }
44
45
  compileOptions {
45
- sourceCompatibility JavaVersion.VERSION_11
46
- targetCompatibility JavaVersion.VERSION_11
46
+ sourceCompatibility JavaVersion.VERSION_17
47
+ targetCompatibility JavaVersion.VERSION_17
47
48
  }
48
49
  }
49
50
 
@@ -78,8 +79,8 @@ dependencies {
78
79
  implementation "com.google.android.gms:play-services-ads:$playServicesAdsVersion"
79
80
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
80
81
  implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
81
- implementation "androidx.core:core-ktx:1.6.0"
82
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
82
+ implementation "androidx.core:core-ktx:$androidxCoreKTXVersion"
83
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
83
84
  }
84
85
 
85
86
  // Allow to run unit test with ./gradlew test
@@ -1,6 +1,5 @@
1
1
 
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.getcapacitor.community.admob.admob">
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
4
3
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
5
4
  <uses-permission android:name="android.permission.INTERNET"/>
6
5
  </manifest>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-community/admob",
3
- "version": "4.2.0",
3
+ "version": "5.0.0",
4
4
  "description": "A native plugin for AdMob",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -40,18 +40,18 @@
40
40
  "release": "np --no-tests"
41
41
  },
42
42
  "devDependencies": {
43
- "@capacitor/android": "^4.0.0",
44
- "@capacitor/core": "^4.0.0",
45
- "@capacitor/cli": "^4.0.0",
43
+ "@capacitor/android": "5.0.0",
44
+ "@capacitor/cli": "5.0.0",
45
+ "@capacitor/core": "5.0.0",
46
46
  "@capacitor/docgen": "git+https://github.com/rdlabo/capacitor-docgen.git#feat/support_extends_build",
47
- "@capacitor/ios": "^4.0.0",
47
+ "@capacitor/ios": "next",
48
48
  "@ionic/eslint-config": "^0.3.0",
49
49
  "@ionic/prettier-config": "^1.0.1",
50
50
  "@ionic/swiftlint-config": "^1.1.2",
51
51
  "eslint": "^7.11.0",
52
52
  "husky": "^4.3.8",
53
53
  "lint-staged": "^11.0.0",
54
- "np": "^7.4.0",
54
+ "np": "^7.7.0",
55
55
  "pre-commit": "^1.2.2",
56
56
  "prettier": "~2.3.0",
57
57
  "prettier-plugin-java": "~1.0.2",
@@ -61,7 +61,7 @@
61
61
  "typescript": "~4.1.5"
62
62
  },
63
63
  "dependencies": {
64
- "@capacitor/core": "^4.0.0"
64
+ "@capacitor/core": "next"
65
65
  },
66
66
  "husky": {
67
67
  "hooks": {