42
+        }
43
+        return null;
44
+    }
45
+
46
+    @Override
47
+    protected boolean isNewPatchFound() {
48
+        if(!Preferences.getInstance().getPatchUrl().equals(patchUrl)){
49
+            new File(patchSavePath).delete();
50
+            return true;
51
+        }
52
+        if(!new File(patchSavePath).exists()){
53
+            return true;
54
+        }
55
+        return false;
56
+    }
57
+
58
+    @Override
59
+    protected void afterPatchSuccess() {
60
+        Preferences.getInstance().setPatchUrl(patchUrl);
61
+    }
62
+}

+ 1 - 1
app/src/main/java/ai/pai/lensman/utils/UrlContainer.java

@@ -67,5 +67,5 @@ public class UrlContainer {
67 67
 
68 68
     public static final String PLATFORM_PRICE_RULES_PAGE_URL = "http://pai.ai/page/price";
69 69
 
70
-
70
+    public static final String PATCH_CONFIG_URL = HOST_URL+"op/patch";
71 71
 }

BIN
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.jar


+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.jar.md5

@@ -0,0 +1 @@
1
+04cbb405b312665f00431c8336b47edc

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.jar.sha1

@@ -0,0 +1 @@
1
+b621d002b8c17885daff42fd81164384aba7a7fc

+ 22 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.pom

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+  <modelVersion>4.0.0</modelVersion>
5
+  <groupId>com.android.plugin.hotpatch</groupId>
6
+  <artifactId>hotpatch</artifactId>
7
+  <version>1.0.0</version>
8
+  <dependencies>
9
+    <dependency>
10
+      <groupId>com.android.tools.build</groupId>
11
+      <artifactId>gradle</artifactId>
12
+      <version>2.2.3</version>
13
+      <scope>compile</scope>
14
+    </dependency>
15
+    <dependency>
16
+      <groupId>org.javassist</groupId>
17
+      <artifactId>javassist</artifactId>
18
+      <version>3.22.0-CR1</version>
19
+      <scope>compile</scope>
20
+    </dependency>
21
+  </dependencies>
22
+</project>

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.pom.md5

@@ -0,0 +1 @@
1
+640d4ea0944d59a7d903ec7f0bfeee75

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.pom.sha1

@@ -0,0 +1 @@
1
+cfddca111bee94e07609aa18512e0fcf2a3f856c

+ 12 - 0
repo/com/android/plugin/hotpatch/hotpatch/maven-metadata.xml

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<metadata>
3
+  <groupId>com.android.plugin.hotpatch</groupId>
4
+  <artifactId>hotpatch</artifactId>
5
+  <versioning>
6
+    <release>1.0.0</release>
7
+    <versions>
8
+      <version>1.0.0</version>
9
+    </versions>
10
+    <lastUpdated>20170303105421</lastUpdated>
11
+  </versioning>
12
+</metadata>

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/maven-metadata.xml.md5

@@ -0,0 +1 @@
1
+89037efcccecda6a668c32743755b699

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/maven-metadata.xml.sha1

@@ -0,0 +1 @@
1
+93d08fd1b04f250f96c8acf7390f14028d49ec06

hanyuan - Gogs: Go Git Service

Nav apraksta

huangqimin001: 2277aedab3 :tada: Initial 5 gadi atpakaļ
..
migrations 2277aedab3 :tada: Initial 5 gadi atpakaļ
static 2277aedab3 :tada: Initial 5 gadi atpakaļ
__init__.py 2277aedab3 :tada: Initial 5 gadi atpakaļ
admin.py 2277aedab3 :tada: Initial 5 gadi atpakaļ
apps.py 2277aedab3 :tada: Initial 5 gadi atpakaļ
models.py 2277aedab3 :tada: Initial 5 gadi atpakaļ
tests.py 2277aedab3 :tada: Initial 5 gadi atpakaļ
views.py 2277aedab3 :tada: Initial 5 gadi atpakaļ