Add keystore for auto updating
authorPeng Li <seudut@gmail.com>
Wed, 30 May 2018 03:31:14 +0000 (11:31 +0800)
committerPeng Li <seudut@gmail.com>
Wed, 30 May 2018 03:31:14 +0000 (11:31 +0800)
app/build.gradle
app/src/main/java/ai/suanzi/rtmpclient/MainActivity.java
app/src/main/jni/Application.mk
app/src/main/res/menu/main.xml
keystore/rtmpclient.jks [new file with mode: 0644]

index ea7a0ce..7d8568a 100644 (file)
@@ -19,10 +19,22 @@ android {
         }
 
     }
+    signingConfigs {
+        release {
+            storeFile file("../keystore/rtmpclient.jks")
+            storePassword '123456'
+            keyAlias 'rtmpclient'
+            keyPassword '123456'
+        }
+    }
     buildTypes {
         release {
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+            signingConfig signingConfigs.release
+        }
+        debug {
+            signingConfig signingConfigs.release
         }
     }
 }
@@ -43,5 +55,5 @@ dependencies {
     implementation files('libs/android-mail-1.5.5.jar')
     implementation files('libs/android-activation-1.5.5.jar')
     implementation 'com.android.support:design:27.1.1'
-    implementation group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5.1'
+    implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
 }
index 223740a..5779298 100644 (file)
@@ -357,6 +357,9 @@ public class MainActivity extends AppCompatActivity implements MyService.MyServi
                 break;
             case R.id.action_about:
                 break;
+            case R.id.action_update:
+                gLogger.debug("onOptionsItemSelected - check update");
+                new CheckVersionInfoTask(this).execute();
         }
         return super.onOptionsItemSelected(item);
     }
index f0d9ca8..08f2103 100644 (file)
@@ -1,2 +1,2 @@
-APP_ABI := armeabi-v7a x86
+APP_ABI := armeabi-v7a
 APP_STL := c++_shared
\ No newline at end of file
index 757ea5c..a168dd4 100644 (file)
         android:orderInCategory="100"
         android:showAsAction="never"
         android:title="About"/>
+    <item
+        android:id="@+id/action_update"
+        android:orderInCategory="100"
+        android:showAsAction="never"
+        android:title="Check Update"/>
+
 </menu>
\ No newline at end of file
diff --git a/keystore/rtmpclient.jks b/keystore/rtmpclient.jks
new file mode 100644 (file)
index 0000000..3187265
Binary files /dev/null and b/keystore/rtmpclient.jks differ