@capgo/inappbrowser 0.4.14 → 0.5.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.
@@ -1,8 +1,8 @@
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'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
6
6
  }
7
7
 
8
8
  buildscript {
@@ -11,7 +11,7 @@ buildscript {
11
11
  mavenCentral()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:7.3.1'
14
+ classpath 'com.android.tools.build:gradle:8.0.0'
15
15
  }
16
16
  }
17
17
 
@@ -19,10 +19,10 @@ apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
21
  namespace "ee.forgr.capacitor_inappbrowser"
22
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
22
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
23
23
  defaultConfig {
24
24
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
25
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
25
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
26
26
  versionCode 1
27
27
  versionName "1.0"
28
28
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -37,8 +37,8 @@ android {
37
37
  abortOnError false
38
38
  }
39
39
  compileOptions {
40
- sourceCompatibility JavaVersion.VERSION_1_8
41
- targetCompatibility JavaVersion.VERSION_1_8
40
+ sourceCompatibility JavaVersion.VERSION_17
41
+ targetCompatibility JavaVersion.VERSION_17
42
42
  }
43
43
  }
44
44
 
@@ -55,10 +55,9 @@ dependencies {
55
55
  testImplementation "junit:junit:$junitVersion"
56
56
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
57
57
  androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
58
- implementation 'com.android.support:customtabs:28.0.0'
59
- implementation 'com.android.support.constraint:constraint-layout:2.0.4'
60
- implementation 'com.android.support:design:28.0.0'
61
- implementation 'com.android.support:appcompat-v7:28.0.0'
58
+ implementation 'androidx.browser:browser:1.0.0'
59
+ implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
60
+ implementation 'com.google.android.material:material:1.0.0'
62
61
  implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
63
62
  implementation 'com.google.android.material:material:1.9.0'
64
63
  }
@@ -49,7 +49,7 @@ public class InAppBrowserPlugin extends Plugin {
49
49
  if (url == null || TextUtils.isEmpty(url)) {
50
50
  call.reject("Invalid URL");
51
51
  }
52
- getActivity()
52
+ this.getActivity()
53
53
  .runOnUiThread(
54
54
  new Runnable() {
55
55
  @Override
@@ -13,7 +13,7 @@ import android.webkit.WebView;
13
13
  import android.webkit.WebViewClient;
14
14
  import android.widget.ImageButton;
15
15
  import android.widget.TextView;
16
- import androidx.appcompat.widget.Toolbar;
16
+ import android.widget.Toolbar;
17
17
  import java.net.URI;
18
18
  import java.net.URISyntaxException;
19
19
  import java.util.HashMap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/inappbrowser",
3
- "version": "0.4.14",
3
+ "version": "0.5.0",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -45,28 +45,28 @@
45
45
  "prepublishOnly": "npm run build"
46
46
  },
47
47
  "devDependencies": {
48
- "@capacitor/android": "^4.7.3",
49
- "@capacitor/cli": "^4.7.3",
50
- "@capacitor/core": "^4.7.3",
48
+ "@capacitor/android": "^5.0.3",
49
+ "@capacitor/cli": "^5.0.3",
50
+ "@capacitor/core": "^5.0.3",
51
51
  "@capacitor/docgen": "^0.2.1",
52
- "@capacitor/ios": "^4.7.3",
52
+ "@capacitor/ios": "^5.0.3",
53
53
  "@ionic/eslint-config": "^0.3.0",
54
- "@ionic/prettier-config": "^2.0.0",
54
+ "@ionic/prettier-config": "^3.0.0",
55
55
  "@ionic/swiftlint-config": "^1.1.2",
56
- "@typescript-eslint/eslint-plugin": "^5.57.1",
57
- "@typescript-eslint/parser": "^5.57.1",
58
- "eslint": "^8.38.0",
56
+ "@typescript-eslint/eslint-plugin": "^5.59.7",
57
+ "@typescript-eslint/parser": "^5.59.7",
58
+ "eslint": "^8.41.0",
59
59
  "eslint-plugin-import": "^2.27.5",
60
60
  "husky": "^8.0.3",
61
- "prettier": "^2.8.7",
61
+ "prettier": "^2.8.8",
62
62
  "prettier-plugin-java": "^2.1.0",
63
- "rimraf": "^4.4.1",
64
- "rollup": "^3.20.2",
65
- "swiftlint": "^1.0.1",
66
- "typescript": "^4.9.5"
63
+ "rimraf": "^5.0.1",
64
+ "rollup": "^3.23.0",
65
+ "swiftlint": "^1.0.2",
66
+ "typescript": "^5.0.4"
67
67
  },
68
68
  "peerDependencies": {
69
- "@capacitor/core": "^4.0.0"
69
+ "@capacitor/core": "^5.0.0"
70
70
  },
71
71
  "prettier": "@ionic/prettier-config",
72
72
  "swiftlint": "@ionic/swiftlint-config",