@@ -13,8 +13,8 @@ android {
|
||
| 13 | 13 |
applicationId "ai.pai.client" |
| 14 | 14 |
minSdkVersion 14 |
| 15 | 15 |
targetSdkVersion 22 |
| 16 |
- versionCode 1022 |
|
| 17 |
- versionName "1.0.22" |
|
| 16 |
+ versionCode 1023 |
|
| 17 |
+ versionName "1.0.23" |
|
| 18 | 18 |
buildConfigField "boolean","isDevMode","true" |
| 19 | 19 |
manifestPlaceholders = [CHANNEL_NAME: "guanwang"] |
| 20 | 20 |
|
@@ -33,7 +33,7 @@ public class PaiAiApplication extends Application {
|
||
| 33 | 33 |
PlatformConfig.setSinaWeibo("2730190333","ff16591583c7bcf4a0d781eae316635a");
|
| 34 | 34 |
PhotoLoader.getInstance(this); |
| 35 | 35 |
checkAppDir(); |
| 36 |
- new PatchManager().patch(this, UrlContainer.PATCH_CONFIG_URL,Constants.APP_PATCH_DIR+File.separator+"patch.dex","ai.pai.client.patch.PatchesInfoImpl"); |
|
| 36 |
+ new PatchManager().patch(this, UrlContainer.PATCH_CONFIG_URL,Constants.APP_PATCH_DIR+File.separator+"patch-"+BuildConfig.VERSION_NAME+".dex","ai.pai.client.patch.PatchesInfoImpl"); |
|
| 37 | 37 |
} |
| 38 | 38 |
|
| 39 | 39 |
private void checkAppDir(){
|
@@ -46,6 +46,7 @@ public class PatchManager extends IPatchManager{
|
||
| 46 | 46 |
@Override |
| 47 | 47 |
protected boolean isNewPatchFound() {
|
| 48 | 48 |
if(!Preferences.getInstance(context).getPatchUrl().equals(patchUrl)){
|
| 49 |
+ new File(patchSavePath).delete(); |
|
| 49 | 50 |
return true; |
| 50 | 51 |
} |
| 51 | 52 |
if(!new File(patchSavePath).exists()){
|