@calvingoh-hexa/capacitor-inappbrowser 6.9.36
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 +17 -0
- package/LICENSE +21 -0
- package/README.md +690 -0
- package/android/build.gradle +64 -0
- package/android/src/main/AndroidManifest.xml +12 -0
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/InAppBrowserPlugin.java +741 -0
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/Options.java +340 -0
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewCallbacks.java +15 -0
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewDialog.java +1177 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/android/src/main/res/drawable/arrow_back_disabled.xml +9 -0
- package/android/src/main/res/drawable/arrow_back_enabled.xml +9 -0
- package/android/src/main/res/drawable/arrow_forward_disabled.xml +9 -0
- package/android/src/main/res/drawable/arrow_forward_enabled.xml +9 -0
- package/android/src/main/res/drawable/ic_clear_24px.xml +9 -0
- package/android/src/main/res/drawable/ic_refresh.xml +9 -0
- package/android/src/main/res/layout/activity_browser.xml +22 -0
- package/android/src/main/res/layout/bridge_layout_main.xml +15 -0
- package/android/src/main/res/layout/content_browser.xml +16 -0
- package/android/src/main/res/layout/tool_bar.xml +72 -0
- package/android/src/main/res/values/browser_theme.xml +3 -0
- package/android/src/main/res/values/colors.xml +5 -0
- package/android/src/main/res/values/dimens.xml +3 -0
- package/android/src/main/res/values/strings.xml +11 -0
- package/android/src/main/res/values/styles.xml +4 -0
- package/dist/docs.json +1865 -0
- package/dist/esm/definitions.d.ts +361 -0
- package/dist/esm/definitions.js +13 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +19 -0
- package/dist/esm/web.js +48 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +75 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +78 -0
- package/dist/plugin.js.map +1 -0
- 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 +26 -0
- package/ios/Plugin/Assets.xcassets/Contents.json +6 -0
- package/ios/Plugin/Assets.xcassets/Forward.imageset/Contents.json +26 -0
- 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/Enums.swift +65 -0
- package/ios/Plugin/InAppBrowserPlugin.h +10 -0
- package/ios/Plugin/InAppBrowserPlugin.m +21 -0
- package/ios/Plugin/InAppBrowserPlugin.swift +434 -0
- package/ios/Plugin/Info.plist +24 -0
- package/ios/Plugin/WKWebViewController.swift +1021 -0
- package/package.json +83 -0
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="24dp"
|
|
3
|
+
android:height="24dp"
|
|
4
|
+
android:viewportWidth="24"
|
|
5
|
+
android:viewportHeight="24">
|
|
6
|
+
<path
|
|
7
|
+
android:fillColor="@color/disable"
|
|
8
|
+
android:pathData="M11.67,3.87L9.9,2.1 0,12l9.9,9.9 1.77,-1.77L3.54,12z"/>
|
|
9
|
+
</vector>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="24dp"
|
|
3
|
+
android:height="24dp"
|
|
4
|
+
android:viewportWidth="24"
|
|
5
|
+
android:viewportHeight="24">
|
|
6
|
+
<path
|
|
7
|
+
android:fillColor="@color/enable"
|
|
8
|
+
android:pathData="M11.67,3.87L9.9,2.1 0,12l9.9,9.9 1.77,-1.77L3.54,12z"/>
|
|
9
|
+
</vector>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="24dp"
|
|
3
|
+
android:height="24dp"
|
|
4
|
+
android:viewportWidth="24"
|
|
5
|
+
android:viewportHeight="24">
|
|
6
|
+
<path
|
|
7
|
+
android:fillColor="@color/disable"
|
|
8
|
+
android:pathData="M5.88,4.12L13.76,12l-7.88,7.88L8,22l10,-10L8,2z"/>
|
|
9
|
+
</vector>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="24dp"
|
|
3
|
+
android:height="24dp"
|
|
4
|
+
android:viewportWidth="24"
|
|
5
|
+
android:viewportHeight="24">
|
|
6
|
+
<path
|
|
7
|
+
android:fillColor="@color/enable"
|
|
8
|
+
android:pathData="M5.88,4.12L13.76,12l-7.88,7.88L8,22l10,-10L8,2z"/>
|
|
9
|
+
</vector>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="24dp"
|
|
3
|
+
android:height="24dp"
|
|
4
|
+
android:viewportWidth="24"
|
|
5
|
+
android:viewportHeight="24">
|
|
6
|
+
<path
|
|
7
|
+
android:fillColor="@color/enable"
|
|
8
|
+
android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
|
|
9
|
+
</vector>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="24dp"
|
|
3
|
+
android:height="24dp"
|
|
4
|
+
android:viewportWidth="24.0"
|
|
5
|
+
android:viewportHeight="24.0">
|
|
6
|
+
<path
|
|
7
|
+
android:fillColor="@color/enable"
|
|
8
|
+
android:pathData="M17.65,6.35C16.2,4.9 14.21,4 12,4c-4.42,0 -7.99,3.58 -7.99,8s3.57,8 7.99,8c3.73,0 6.84,-2.55 7.73,-6h-2.08c-0.82,2.33 -3.04,4 -5.65,4 -3.31,0 -6,-2.69 -6,-6s2.69,-6 6,-6c1.66,0 3.14,0.69 4.22,1.78L13,11h7V4l-2.35,2.35z"/>
|
|
9
|
+
</vector>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
tools:context="com.cap.browser.plugin.WebViewActivity">
|
|
8
|
+
|
|
9
|
+
<com.google.android.material.appbar.AppBarLayout
|
|
10
|
+
android:layout_width="match_parent"
|
|
11
|
+
android:layout_height="wrap_content"
|
|
12
|
+
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
|
13
|
+
|
|
14
|
+
<include
|
|
15
|
+
android:id="@+id/tool_bar"
|
|
16
|
+
layout="@layout/tool_bar" />
|
|
17
|
+
|
|
18
|
+
</com.google.android.material.appbar.AppBarLayout>
|
|
19
|
+
|
|
20
|
+
<include layout="@layout/content_browser" />
|
|
21
|
+
|
|
22
|
+
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
tools:context="com.getcapacitor.BridgeActivity"
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
<WebView
|
|
11
|
+
android:id="@+id/webview"
|
|
12
|
+
android:layout_width="fill_parent"
|
|
13
|
+
android:layout_height="fill_parent" />
|
|
14
|
+
|
|
15
|
+
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
8
|
+
tools:context="com.cap.browser.plugin.WebViewActivity"
|
|
9
|
+
tools:showIn="@layout/activity_browser">
|
|
10
|
+
|
|
11
|
+
<WebView
|
|
12
|
+
android:id="@+id/browser_view"
|
|
13
|
+
android:layout_width="match_parent"
|
|
14
|
+
android:layout_height="match_parent"/>
|
|
15
|
+
|
|
16
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<android.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="wrap_content"
|
|
7
|
+
android:background="#eeeeef"
|
|
8
|
+
android:elevation="4dp"
|
|
9
|
+
app:titleTextColor="#262626">
|
|
10
|
+
|
|
11
|
+
<ImageButton
|
|
12
|
+
android:id="@+id/closeButton"
|
|
13
|
+
android:layout_width="wrap_content"
|
|
14
|
+
android:layout_height="wrap_content"
|
|
15
|
+
android:src="@drawable/ic_clear_24px"
|
|
16
|
+
android:layout_gravity="start"
|
|
17
|
+
android:background="#eeeeef"
|
|
18
|
+
android:contentDescription="@string/close_button" />
|
|
19
|
+
|
|
20
|
+
<ImageButton
|
|
21
|
+
android:id="@+id/buttonNearDone"
|
|
22
|
+
android:layout_width="wrap_content"
|
|
23
|
+
android:layout_height="wrap_content"
|
|
24
|
+
android:layout_gravity="start"
|
|
25
|
+
android:background="@android:color/transparent"
|
|
26
|
+
android:contentDescription="@string/button_near_done"
|
|
27
|
+
android:src="@drawable/ic_clear_24px"
|
|
28
|
+
android:translationX="64px"
|
|
29
|
+
tools:visibility="gone"
|
|
30
|
+
/>
|
|
31
|
+
<ImageButton
|
|
32
|
+
android:id="@+id/reloadButton"
|
|
33
|
+
android:layout_width="wrap_content"
|
|
34
|
+
android:layout_height="wrap_content"
|
|
35
|
+
android:layout_gravity="end"
|
|
36
|
+
android:background="#eeeeef"
|
|
37
|
+
android:paddingRight="10dp"
|
|
38
|
+
android:contentDescription="@string/reload_button"
|
|
39
|
+
android:src="@drawable/ic_refresh"
|
|
40
|
+
android:visibility="gone" />
|
|
41
|
+
|
|
42
|
+
<TextView
|
|
43
|
+
android:id="@+id/titleText"
|
|
44
|
+
android:layout_width="wrap_content"
|
|
45
|
+
android:layout_height="wrap_content"
|
|
46
|
+
android:layout_gravity="center_horizontal"
|
|
47
|
+
android:text="@string/title"
|
|
48
|
+
android:maxLines="5"
|
|
49
|
+
android:ellipsize="end"
|
|
50
|
+
android:singleLine="false"
|
|
51
|
+
android:textColor="#262626" />
|
|
52
|
+
|
|
53
|
+
<ImageButton
|
|
54
|
+
android:id="@+id/forwardButton"
|
|
55
|
+
android:layout_width="wrap_content"
|
|
56
|
+
android:layout_height="wrap_content"
|
|
57
|
+
android:layout_gravity="end"
|
|
58
|
+
android:background="#eeeeef"
|
|
59
|
+
android:contentDescription="@string/forward_button"
|
|
60
|
+
android:paddingRight="10dp"
|
|
61
|
+
android:src="@drawable/arrow_forward_disabled" />
|
|
62
|
+
|
|
63
|
+
<ImageButton
|
|
64
|
+
android:id="@+id/backButton"
|
|
65
|
+
android:layout_width="wrap_content"
|
|
66
|
+
android:layout_height="wrap_content"
|
|
67
|
+
android:layout_gravity="end"
|
|
68
|
+
android:background="#eeeeef"
|
|
69
|
+
android:contentDescription="@string/back_button"
|
|
70
|
+
android:paddingRight="10dp"
|
|
71
|
+
android:src="@drawable/arrow_back_disabled" />
|
|
72
|
+
</android.widget.Toolbar>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<resources>
|
|
2
|
+
<string name="my_string">Just a simple string</string>
|
|
3
|
+
<string name="title_activity_browser">BrowserActivity</string>
|
|
4
|
+
<string name="title_activity_basic">BasicActivity</string>
|
|
5
|
+
<string name="close_button">Close Button</string>
|
|
6
|
+
<string name="button_near_done">Button near "done"</string>
|
|
7
|
+
<string name="reload_button">Reload Button</string>
|
|
8
|
+
<string name="back_button">Back Button</string>
|
|
9
|
+
<string name="title">Title</string>
|
|
10
|
+
<string name="forward_button">Forward Button</string>
|
|
11
|
+
</resources>
|