-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from qiniu/develop
Release 6.0.5
- Loading branch information
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
package com.qiniu.conf; | ||
|
||
import java.util.Random; | ||
|
||
public class Conf { | ||
public static final String VERSION = "6.0.4"; | ||
public static final String VERSION = "6.0.5"; | ||
public static String UP_HOST = "http://upload.qiniu.com"; | ||
public static String UP_HOST2 = "http://up.qiniu.com"; | ||
|
||
private static String id = genId(); | ||
|
||
public static String getUserAgent() { | ||
return "QiniuAndroid/" + VERSION + " (" + android.os.Build.VERSION.RELEASE + "; " + android.os.Build.MODEL+ ")"; | ||
return "QiniuAndroid/" + VERSION + " (" + android.os.Build.VERSION.RELEASE + "; " | ||
+ android.os.Build.MODEL+ "; " + id +")"; | ||
} | ||
|
||
private static String genId(){ | ||
Random r = new Random(); | ||
int rnum = r.nextInt(999); | ||
return System.currentTimeMillis() + "" + rnum; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters