@capacitor-community/admob 3.3.0 → 4.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.
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '12.0'
14
+ s.ios.deployment_target = '13.0'
15
15
  s.swift_version = '5.1'
16
16
  s.static_framework = true
17
17
  s.dependency 'Capacitor'
package/README.md CHANGED
@@ -43,6 +43,15 @@ Made with [contributors-img](https://contrib.rocks).
43
43
 
44
44
  ## Installation
45
45
 
46
+ If you use capacitor 4:
47
+
48
+ ```
49
+ % npm install --save @capacitor-community/admob@next
50
+ % npx cap update
51
+ ```
52
+
53
+ capacitor 3:
54
+
46
55
  ```
47
56
  % npm install --save @capacitor-community/admob
48
57
  % npx cap update
@@ -1,18 +1,18 @@
1
1
  ext {
2
- junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.1'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.2.0'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.2'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.3.0'
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.2'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
6
6
  }
7
7
 
8
8
  buildscript {
9
9
  ext.kotlin_version = '1.5.21'
10
10
  repositories {
11
11
  google()
12
- jcenter()
12
+ mavenCentral()
13
13
  }
14
14
  dependencies {
15
- classpath 'com.android.tools.build:gradle:4.2.1'
15
+ classpath 'com.android.tools.build:gradle:7.2.1'
16
16
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17
17
  }
18
18
  }
@@ -21,10 +21,10 @@ apply plugin: 'com.android.library'
21
21
  apply plugin: 'kotlin-android'
22
22
 
23
23
  android {
24
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30
24
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
25
25
  defaultConfig {
26
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
27
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 30
26
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
27
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
28
28
  versionCode 1
29
29
  versionName "1.0"
30
30
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -39,15 +39,15 @@ android {
39
39
  abortOnError false
40
40
  }
41
41
  compileOptions {
42
- sourceCompatibility JavaVersion.VERSION_1_8
43
- targetCompatibility JavaVersion.VERSION_1_8
42
+ sourceCompatibility JavaVersion.VERSION_11
43
+ targetCompatibility JavaVersion.VERSION_11
44
44
  }
45
45
  }
46
46
 
47
47
  repositories {
48
48
  google()
49
- jcenter()
50
- mavenCentral()
49
+ mavenCentral()
50
+
51
51
  }
52
52
 
53
53
  def testRunner = "1.4.0"
@@ -72,7 +72,7 @@ dependencies {
72
72
  // androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
73
73
 
74
74
  // after 20.5.0, require minCompileSdk (31)
75
- implementation 'com.google.android.gms:play-services-ads:20.4.0'
75
+ implementation 'com.google.android.gms:play-services-ads:21.1.0'
76
76
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
77
77
  implementation "androidx.coordinatorlayout:coordinatorlayout:1.1.0"
78
78
  implementation "androidx.core:core-ktx:1.6.0"
@@ -13,5 +13,5 @@ data class BannerAdSizeInfo(val width: Int, val height: Int) : JSObject() {
13
13
  super.put("width", width)
14
14
  super.put("height", height)
15
15
  }
16
- constructor(mAdView: AdView): this(Objects.requireNonNull(mAdView.adSize).width, Objects.requireNonNull(mAdView.adSize).height)
16
+ constructor(mAdView: AdView): this(Objects.requireNonNull(mAdView.adSize)!!.width, Objects.requireNonNull(mAdView.adSize)!!.height)
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-community/admob",
3
- "version": "3.3.0",
3
+ "version": "4.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,10 +40,11 @@
40
40
  "release": "np --no-tests"
41
41
  },
42
42
  "devDependencies": {
43
- "@capacitor/android": "^3.0.0",
44
- "@capacitor/cli": "^3.0.0",
43
+ "@capacitor/android": "^4.0.0",
44
+ "@capacitor/core": "^4.0.0",
45
+ "@capacitor/cli": "^4.0.0",
45
46
  "@capacitor/docgen": "git+https://github.com/rdlabo/capacitor-docgen.git#feat/support_extends_build",
46
- "@capacitor/ios": "^3.0.0",
47
+ "@capacitor/ios": "^4.0.0",
47
48
  "@ionic/eslint-config": "^0.3.0",
48
49
  "@ionic/prettier-config": "^1.0.1",
49
50
  "@ionic/swiftlint-config": "^1.1.2",
@@ -52,15 +53,15 @@
52
53
  "lint-staged": "^11.0.0",
53
54
  "np": "^7.4.0",
54
55
  "pre-commit": "^1.2.2",
55
- "prettier": "~2.2.0",
56
- "prettier-plugin-java": "~1.0.0",
56
+ "prettier": "~2.3.0",
57
+ "prettier-plugin-java": "~1.0.2",
57
58
  "rimraf": "^3.0.2",
58
59
  "rollup": "^2.32.0",
59
60
  "swiftlint": "^1.0.1",
60
- "typescript": "~4.0.3"
61
+ "typescript": "~4.1.5"
61
62
  },
62
63
  "dependencies": {
63
- "@capacitor/core": "^3.0.0"
64
+ "@capacitor/core": "^4.0.0"
64
65
  },
65
66
  "husky": {
66
67
  "hooks": {