Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Flutter Inappwebview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
Flutter Inappwebview
Commits
b389760d
Commit
b389760d
authored
5 years ago
by
crazecoder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add proguard
parent
ffb36fa9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
android/build.gradle
android/build.gradle
+11
-0
android/proguard-rules.pro
android/proguard-rules.pro
+17
-0
No files found.
android/build.gradle
View file @
b389760d
...
...
@@ -29,10 +29,21 @@ android {
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
vectorDrawables
.
useSupportLibrary
=
true
consumerProguardFiles
'proguard-rules.pro'
}
lintOptions
{
disable
'InvalidPackage'
}
buildTypes
{
debug
{
minifyEnabled
false
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
}
release
{
minifyEnabled
true
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
}
}
dependencies
{
implementation
'androidx.webkit:webkit:1.0.0'
implementation
'androidx.browser:browser:1.0.0'
...
...
This diff is collapsed.
Click to expand it.
android/proguard-rules.pro
0 → 100644
View file @
b389760d
# WebView
-
keepattributes
*
JavascriptInterface
*
-
keepclassmembers
class
*
{
@
android
.
webkit
.
JavascriptInterface
<
methods
>
;
}
-
keepclassmembers
class
*
extends
android
.
webkit
.
WebViewClient
{
public
void
*
(
android
.
webkit
.
WebView
,
java
.
lang
.
String
,
android
.
graphics
.
Bitmap
);
public
boolean
*
(
android
.
webkit
.
WebView
,
java
.
lang
.
String
);
public
void
*
(
android
.
webkit
.
webView
,
jav
.
lang
.
String
);
}
-
keepclassmembers
class
com
.
pichillilorenzo
.
flutter_inappbrowser
$
JavaScriptBridgeInterface
{
<
fields
>
;
<
methods
>
;
public
*
;
private
*
;
}
-
keep
class
com
.
pichillilorenzo
.
flutter_inappbrowser
.
**
{
*
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment