Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
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
sheteng
com.ccwangluo.accelerator
Commits
b3f52012
Commit
b3f52012
authored
Feb 25, 2022
by
liusheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugly应用更新sdk基本接入完成
parent
22bdc9a4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
105 additions
and
28 deletions
+105
-28
app/src/main/java/com/ccwangluo/accelerator/App.kt
app/src/main/java/com/ccwangluo/accelerator/App.kt
+1
-1
app/src/main/res/drawable/bg_app_upgrade.xml
app/src/main/res/drawable/bg_app_upgrade.xml
+9
-0
app/src/main/res/drawable/btn_app_upgrade.xml
app/src/main/res/drawable/btn_app_upgrade.xml
+5
-0
app/src/main/res/drawable/image_find_new_version.png
app/src/main/res/drawable/image_find_new_version.png
+0
-0
app/src/main/res/layout/dialog_app_upgrade.xml
app/src/main/res/layout/dialog_app_upgrade.xml
+90
-27
No files found.
app/src/main/java/com/ccwangluo/accelerator/App.kt
View file @
b3f52012
...
...
@@ -135,7 +135,7 @@ class App : Application(), androidx.work.Configuration.Provider by Core {
//Bugly.init(this, com.qq.bugly.beta.demo.DemoApplication.APP_ID, true, strategy)
//
Beta.upgradeDialogLayoutId = R.layout.dialog_app_upgrade
Beta
.
upgradeDialogLayoutId
=
R
.
layout
.
dialog_app_upgrade
Bugly
.
init
(
this
,
"e030f74df5"
,
true
)
}
...
...
app/src/main/res/drawable/bg_app_upgrade.xml
0 → 100644
View file @
b3f52012
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:bottomLeftRadius=
"18dp"
android:bottomRightRadius=
"18dp"
android:topLeftRadius=
"30dp"
android:topRightRadius=
"30dp"
/>
<solid
android:color=
"#FFFFFF"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/btn_app_upgrade.xml
0 → 100644
View file @
b3f52012
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"26dp"
/>
<solid
android:color=
"#868BFB"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/image_find_new_version.png
0 → 100644
View file @
b3f52012
45.7 KB
app/src/main/res/layout/dialog_app_upgrade.xml
View file @
b3f52012
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation=
"vertical
"
xmlns:tools=
"http://schemas.android.com/tools
"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:gravity=
"center"
android:orientation=
"vertical"
>
<ImageView
android:tag=
"beta_upgrade_banner"
android:layout_width=
"wrap_content"
android:src=
"@mipmap/banner"
android:layout_height=
"wrap_content"
/>
<TextView
android:tag=
"beta_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"28dp"
android:layout_marginRight=
"28dp"
android:background=
"@drawable/bg_app_upgrade"
android:orientation=
"vertical"
>
<TextView
android:tag=
"beta_upgrade_info"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:adjustViewBounds=
"true"
android:src=
"@drawable/image_find_new_version"
android:tag=
"beta_upgrade_banner"
/>
<TextView
android:tag=
"beta_upgrade_feature"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"15dp"
android:layout_marginRight=
"10dp"
android:tag=
"beta_title"
android:textColor=
"#000000"
android:textSize=
"15sp"
tools:text=
"BuglyBetaDemo1.0.2"
/>
<Button
android:tag=
"beta_cancel_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"10dp"
android:lineSpacingExtra=
"2dp"
android:tag=
"beta_upgrade_info"
android:textColor=
"#9A9A9A"
android:textSize=
"12sp"
tools:text=
"版本:1.0.2\n包大小:25.4M\n更新时间:2016-06-03 17:55"
/>
<Button
android:tag=
"beta_confirm_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"10dp"
android:lineSpacingExtra=
"2dp"
android:minHeight=
"100dp"
android:tag=
"beta_upgrade_feature"
android:textColor=
"#000000"
android:textSize=
"15sp"
tools:text=
"功能说明:\n2028添加自定义feature"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1px"
android:layout_marginTop=
"5dp"
android:background=
"#F0F0F0"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"59dp"
android:orientation=
"horizontal"
>
<Button
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:background=
"@null"
android:tag=
"beta_cancel_button"
android:textColor=
"#A8A8A8"
android:textSize=
"15sp"
tools:text=
"下次再说"
/>
<FrameLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
>
<Button
android:layout_width=
"105dp"
android:layout_height=
"34dp"
android:layout_gravity=
"center"
android:background=
"@drawable/btn_app_upgrade"
android:tag=
"beta_confirm_button"
android:textColor=
"#FFFFFF"
android:textSize=
"15sp"
tools:text=
"立即升级"
/>
</FrameLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
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