Skip to content

Commit 8e5417e

Browse files
committed
Increase display download speed
1 parent 32b772f commit 8e5417e

File tree

5 files changed

+31
-2
lines changed

5 files changed

+31
-2
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.2.3'
9+
classpath 'com.novoda:bintray-release:0.3.4'
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
@@ -16,6 +17,13 @@ allprojects {
1617
repositories {
1718
jcenter()
1819
}
20+
tasks.withType(Javadoc) {
21+
options{
22+
encoding "UTF-8"
23+
charSet 'UTF-8'
24+
links "http://docs.oracle.com/javase/7/docs/api"
25+
}
26+
}
1927
}
2028

2129
task clean(type: Delete) {

versionupdatelibrary/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.novoda.bintray-release'//添加
23

34
android {
45
compileSdkVersion 24
@@ -19,6 +20,9 @@ android {
1920
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2021
}
2122
}
23+
lintOptions {
24+
abortOnError false
25+
}
2226
}
2327

2428
dependencies {
@@ -29,3 +33,13 @@ dependencies {
2933
compile 'com.android.support:appcompat-v7:24.0.0-beta1'
3034
testCompile 'junit:junit:4.12'
3135
}
36+
37+
publish {
38+
userOrg = 'androidkun'
39+
groupId = 'com.androidkun'
40+
artifactId = 'xversionupdate'
41+
publishVersion = '1.0.0'
42+
desc = 'A quick update version of the framework for Android.'
43+
website = 'https://github.com/AndroidKun/XVersionUpdate'
44+
}
45+

versionupdatelibrary/src/main/java/androidkun/com/versionupdatelibrary/service/VersionUpdateService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private void updataNofication(int progress, int size, String speed) {
156156
remoteView.setProgressBar(R.id.progressBar, 100, progress, false);
157157
DecimalFormat df = new DecimalFormat("#.##");
158158
remoteView.setTextViewText(R.id.textSize, df.format(b2mbDouble(size)) + "");
159-
remoteView.setTextViewText(R.id.textSpeed, speed + "kb");
159+
remoteView.setTextViewText(R.id.textSpeed, speed + "kb/s");
160160
notificationManager.notify(notificationId, builder.build());
161161
}
162162

versionupdatelibrary/src/main/res/values/strings.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@
44
<string name="notification_pagesize">Install package size:</string>
55
<string name="notification_speed">Download speed:</string>
66
<string name="notification_ticker">Start downloading</string>
7+
8+
<string name="notifyTitle">Notity</string>
9+
<string name="notifyMsg">The current application is missing the necessary permissions.\n\nPlease click\"Setting\"-\"permissions\"-
10+
open required permissions。</string>
11+
<string name="setting">Setting</string>
12+
<string name="cancel">Cancel</string>
13+
<string name="sure">Sure</string>
714
</resources>

0 commit comments

Comments
 (0)