Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
B
Browser White
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Browser White
Commits
5f0caed5
Commit
5f0caed5
authored
Aug 16, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
ffc183d2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
21 deletions
+34
-21
build.gradle.kts
app/build.gradle.kts
+13
-1
WebViewFragment.kt
...java/com/base/browserwhite/ui/fragment/WebViewFragment.kt
+1
-1
fragment_home.xml
app/src/main/res/layout/fragment_home.xml
+3
-2
item_head_1.xml
app/src/main/res/layout/item_head_1.xml
+12
-12
item_website_grid.xml
app/src/main/res/layout/item_website_grid.xml
+5
-5
smartcl.jks
smartcl.jks
+0
-0
No files found.
app/build.gradle.kts
View file @
5f0caed5
...
@@ -4,6 +4,7 @@ plugins {
...
@@ -4,6 +4,7 @@ plugins {
}
}
android
{
android
{
namespace
=
"com.base.browserwhite"
namespace
=
"com.base.browserwhite"
compileSdk
=
34
compileSdk
=
34
...
@@ -16,10 +17,21 @@ android {
...
@@ -16,10 +17,21 @@ android {
testInstrumentationRunner
=
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
=
"androidx.test.runner.AndroidJUnitRunner"
}
}
signingConfigs
{
create
(
"release"
)
{
storeFile
=
file
(
"../smartcl.jks"
)
storePassword
=
"123456"
keyAlias
=
"key0"
keyPassword
=
"123456"
}
}
buildTypes
{
buildTypes
{
release
{
release
{
isMinifyEnabled
=
false
isMinifyEnabled
=
true
isShrinkResources
=
true
proguardFiles
(
getDefaultProguardFile
(
"proguard-android-optimize.txt"
),
"proguard-rules.pro"
)
proguardFiles
(
getDefaultProguardFile
(
"proguard-android-optimize.txt"
),
"proguard-rules.pro"
)
}
}
}
}
...
...
app/src/main/java/com/base/browserwhite/ui/fragment/WebViewFragment.kt
View file @
5f0caed5
...
@@ -145,7 +145,7 @@ class WebViewFragment(val url: String) : BaseFragment<FragmentWebViewBinding>()
...
@@ -145,7 +145,7 @@ class WebViewFragment(val url: String) : BaseFragment<FragmentWebViewBinding>()
}
}
override
fun
onReceivedError
(
view
:
WebView
?,
request
:
WebResourceRequest
?,
error
:
WebResourceError
?)
{
override
fun
onReceivedError
(
view
:
WebView
?,
request
:
WebResourceRequest
?,
error
:
WebResourceError
?)
{
LogEx
.
logDebug
(
TAG
,
"onReceivedError ${error?.description}"
)
LogEx
.
logDebug
(
TAG
,
"onReceivedError ${error?.
errorCode} ${error?.
description}"
)
super
.
onReceivedError
(
view
,
request
,
error
)
super
.
onReceivedError
(
view
,
request
,
error
)
job
?.
cancel
()
job
?.
cancel
()
binding
.
webView
.
visibility
=
View
.
GONE
binding
.
webView
.
visibility
=
View
.
GONE
...
...
app/src/main/res/layout/fragment_home.xml
View file @
5f0caed5
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
85
dp"
android:layout_height=
"
50
dp"
app:layout_scrollFlags=
"scroll|enterAlwaysCollapsed"
app:layout_scrollFlags=
"scroll|enterAlwaysCollapsed"
tools:ignore=
"ContentDescription"
>
tools:ignore=
"ContentDescription"
>
...
@@ -87,7 +87,8 @@
...
@@ -87,7 +87,8 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_height=
"50dp"
android:layout_marginHorizontal=
"15dp"
android:layout_marginHorizontal=
"15dp"
android:layout_marginVertical=
"15dp"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"15dp"
android:background=
"@drawable/bg_stroke_070709"
android:background=
"@drawable/bg_stroke_070709"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
...
...
app/src/main/res/layout/item_head_1.xml
View file @
5f0caed5
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
tools:ignore=
"UseCompoundDrawables"
>
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
<ImageView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
45dp
"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
45dp
"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"8.5dp"
android:layout_marginTop=
"8.5dp"
android:src=
"@mipmap/news"
android:src=
"@mipmap/news"
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"
8.5
dp"
android:layout_marginTop=
"
4
dp"
android:layout_marginBottom=
"5dp"
android:layout_marginBottom=
"5dp"
android:text=
"News"
android:text=
"News"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
...
@@ -49,8 +49,8 @@
...
@@ -49,8 +49,8 @@
tools:ignore=
"UseCompoundDrawables"
>
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
<ImageView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
45dp
"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
45dp
"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"8.5dp"
android:layout_marginTop=
"8.5dp"
android:src=
"@mipmap/clean"
android:src=
"@mipmap/clean"
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"
8.5
dp"
android:layout_marginTop=
"
4
dp"
android:layout_marginBottom=
"5dp"
android:layout_marginBottom=
"5dp"
android:text=
"Clean"
android:text=
"Clean"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
...
@@ -80,8 +80,8 @@
...
@@ -80,8 +80,8 @@
tools:ignore=
"UseCompoundDrawables"
>
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
<ImageView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
45dp
"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
45dp
"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"8.5dp"
android:layout_marginTop=
"8.5dp"
android:src=
"@mipmap/process"
android:src=
"@mipmap/process"
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"
8.5
dp"
android:layout_marginTop=
"
4
dp"
android:layout_marginBottom=
"5dp"
android:layout_marginBottom=
"5dp"
android:text=
"Process"
android:text=
"Process"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
...
@@ -111,8 +111,8 @@
...
@@ -111,8 +111,8 @@
tools:ignore=
"UseCompoundDrawables"
>
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
<ImageView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
45dp
"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
45dp
"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"8.5dp"
android:layout_marginTop=
"8.5dp"
android:src=
"@mipmap/bookmark"
android:src=
"@mipmap/bookmark"
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"
8.5
dp"
android:layout_marginTop=
"
4
dp"
android:layout_marginBottom=
"5dp"
android:layout_marginBottom=
"5dp"
android:text=
"Bookmark"
android:text=
"Bookmark"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
...
...
app/src/main/res/layout/item_website_grid.xml
View file @
5f0caed5
...
@@ -14,20 +14,20 @@
...
@@ -14,20 +14,20 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:padding=
"
8
dp"
>
android:padding=
"
4
dp"
>
<de.hdodenhof.circleimageview.CircleImageView
<de.hdodenhof.circleimageview.CircleImageView
android:id=
"@+id/iv_icon"
android:id=
"@+id/iv_icon"
android:layout_width=
"
60
dp"
android:layout_width=
"
45
dp"
android:layout_height=
"
60
dp"
android:layout_height=
"
45
dp"
app:civ_circle_background_color=
"#FDFDFD"
app:civ_circle_background_color=
"#FDFDFD"
tools:ignore=
"ContentDescription"
tools:ignore=
"ContentDescription"
tools:src=
"@mipmap/amazon"
/>
tools:src=
"@mipmap/amazon"
/>
<ImageView
<ImageView
android:id=
"@+id/iv_add"
android:id=
"@+id/iv_add"
android:layout_width=
"
60
dp"
android:layout_width=
"
45
dp"
android:layout_height=
"
60
dp"
android:layout_height=
"
45
dp"
android:visibility=
"gone"
android:visibility=
"gone"
app:civ_circle_background_color=
"#FDFDFD"
app:civ_circle_background_color=
"#FDFDFD"
tools:ignore=
"ContentDescription"
tools:ignore=
"ContentDescription"
...
...
smartcl.jks
0 → 100644
View file @
5f0caed5
File added
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