@capgo/inappbrowser 8.0.0 → 8.0.2
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/CapgoInappbrowser.podspec +2 -2
- package/LICENSE +373 -21
- package/Package.swift +28 -0
- package/README.md +600 -74
- package/android/build.gradle +17 -16
- package/android/src/main/AndroidManifest.xml +14 -2
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/InAppBrowserPlugin.java +952 -204
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/Options.java +478 -81
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewCallbacks.java +10 -4
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewDialog.java +3021 -226
- package/android/src/main/res/drawable/ic_refresh.xml +9 -0
- package/android/src/main/res/drawable/ic_share.xml +10 -0
- package/android/src/main/res/layout/activity_browser.xml +10 -0
- package/android/src/main/res/layout/content_browser.xml +3 -2
- package/android/src/main/res/layout/tool_bar.xml +44 -7
- package/android/src/main/res/values/strings.xml +4 -0
- package/android/src/main/res/values/themes.xml +27 -0
- package/android/src/main/res/xml/file_paths.xml +14 -0
- package/dist/docs.json +1289 -149
- package/dist/esm/definitions.d.ts +614 -25
- package/dist/esm/definitions.js +17 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +16 -3
- package/dist/esm/web.js +43 -7
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +60 -8
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +60 -8
- package/dist/plugin.js.map +1 -1
- package/ios/{Plugin → Sources/InAppBrowserPlugin}/Enums.swift +5 -5
- package/ios/Sources/InAppBrowserPlugin/InAppBrowserPlugin.swift +954 -0
- package/ios/Sources/InAppBrowserPlugin/WKWebViewController.swift +2003 -0
- package/package.json +32 -30
- package/ios/Plugin/Assets.xcassets/Back.imageset/Back.png +0 -0
- package/ios/Plugin/Assets.xcassets/Back.imageset/Back@2x.png +0 -0
- package/ios/Plugin/Assets.xcassets/Back.imageset/Back@3x.png +0 -0
- package/ios/Plugin/Assets.xcassets/Back.imageset/Contents.json +0 -26
- package/ios/Plugin/Assets.xcassets/Contents.json +0 -6
- package/ios/Plugin/Assets.xcassets/Forward.imageset/Contents.json +0 -26
- package/ios/Plugin/Assets.xcassets/Forward.imageset/Forward.png +0 -0
- package/ios/Plugin/Assets.xcassets/Forward.imageset/Forward@2x.png +0 -0
- package/ios/Plugin/Assets.xcassets/Forward.imageset/Forward@3x.png +0 -0
- package/ios/Plugin/InAppBrowserPlugin.h +0 -10
- package/ios/Plugin/InAppBrowserPlugin.m +0 -17
- package/ios/Plugin/InAppBrowserPlugin.swift +0 -203
- package/ios/Plugin/Info.plist +0 -24
- package/ios/Plugin/WKWebViewController.swift +0 -784
package/android/build.gradle
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
|
|
6
|
+
androidxBrowserVersion = project.hasProperty('androidxBrowserVersion') ? rootProject.ext.androidxBrowserVersion : '1.9.0'
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
buildscript {
|
|
@@ -11,18 +12,18 @@ buildscript {
|
|
|
11
12
|
mavenCentral()
|
|
12
13
|
}
|
|
13
14
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:8.0
|
|
15
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
apply plugin: 'com.android.library'
|
|
19
20
|
|
|
20
21
|
android {
|
|
21
|
-
namespace "ee.forgr.capacitor_inappbrowser"
|
|
22
|
-
|
|
22
|
+
namespace = "ee.forgr.capacitor_inappbrowser"
|
|
23
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
23
24
|
defaultConfig {
|
|
24
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
25
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
25
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
26
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
26
27
|
versionCode 1
|
|
27
28
|
versionName "1.0"
|
|
28
29
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -34,11 +35,11 @@ android {
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
lintOptions {
|
|
37
|
-
abortOnError false
|
|
38
|
+
abortOnError = false
|
|
38
39
|
}
|
|
39
40
|
compileOptions {
|
|
40
|
-
sourceCompatibility JavaVersion.
|
|
41
|
-
targetCompatibility JavaVersion.
|
|
41
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
42
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
@@ -51,13 +52,13 @@ repositories {
|
|
|
51
52
|
dependencies {
|
|
52
53
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
53
54
|
implementation project(':capacitor-android')
|
|
55
|
+
implementation 'com.caverock:androidsvg:1.4'
|
|
54
56
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
57
|
+
implementation "androidx.window:window:1.5.0"
|
|
55
58
|
testImplementation "junit:junit:$junitVersion"
|
|
56
59
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
57
60
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
58
|
-
implementation
|
|
59
|
-
implementation '
|
|
60
|
-
implementation '
|
|
61
|
-
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
|
|
62
|
-
implementation 'com.google.android.material:material:1.9.0'
|
|
61
|
+
implementation "androidx.browser:browser:$androidxBrowserVersion"
|
|
62
|
+
implementation 'com.google.android.material:material:1.13.0'
|
|
63
|
+
implementation 'androidx.webkit:webkit:1.14.0'
|
|
63
64
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
2
|
<queries>
|
|
4
3
|
<intent>
|
|
@@ -7,4 +6,17 @@
|
|
|
7
6
|
<data android:scheme="http" />
|
|
8
7
|
</intent>
|
|
9
8
|
</queries>
|
|
10
|
-
|
|
9
|
+
<uses-permission android:name="android.permission.CAMERA"/>
|
|
10
|
+
|
|
11
|
+
<application>
|
|
12
|
+
<provider
|
|
13
|
+
android:name="androidx.core.content.FileProvider"
|
|
14
|
+
android:authorities="${applicationId}.fileprovider"
|
|
15
|
+
android:exported="false"
|
|
16
|
+
android:grantUriPermissions="true">
|
|
17
|
+
<meta-data
|
|
18
|
+
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
19
|
+
android:resource="@xml/file_paths" />
|
|
20
|
+
</provider>
|
|
21
|
+
</application>
|
|
22
|
+
</manifest>
|