Skip to content

Commit

Permalink
bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy R authored and Dmitriy R committed Nov 9, 2015
1 parent 6a58d5f commit 389566d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="rogatkin.mobile.web"
android:versionCode="10" android:versionName="@string/app_version">
android:versionCode="11" android:versionName="@string/app_version">
<uses-sdk android:minSdkVersion="6" android:targetSdkVersion="19"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Expand Down
2 changes: 1 addition & 1 deletion res/values/strings.xml
Expand Up @@ -7,7 +7,7 @@
<string name="http_prfx">http://</string>
<string name="deploy">Deploy</string>
<string name="list_deployed">Deployed web apps</string>
<string name="app_version">1.07</string>
<string name="app_version">1.08</string>
<string name="menu_app_redeploy">Redeploy</string>
<string name="menu_app_remove">Remove</string>
<string name="menu_app_stop">Stop</string>
Expand Down
13 changes: 6 additions & 7 deletions src/rogatkin/mobile/web/TJWSServ.java
Expand Up @@ -29,6 +29,7 @@
import rogatkin.web.WebAppServlet;
import Acme.Utils;
import Acme.Serve.FileServlet;
import android.annotation.SuppressLint;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
Expand Down Expand Up @@ -113,12 +114,8 @@ public String deployApp(String url) throws RemoteException {
}

public List<String> rescanApps() throws RemoteException {
try {
scanDeployments();
updateServletsList();
} catch(Exception e) {
srv.log(e, "");
}
return servletsList;
}

Expand All @@ -141,6 +138,7 @@ public List<String> redeployApp(String name) throws RemoteException {

@Override
public void onDestroy() {
//srv.log("Destroy commande received");
stopServ(); // just in case
srv.destroyAllServlets();
if (logStream != System.out && logStream != null)
Expand All @@ -149,6 +147,7 @@ public void onDestroy() {
}

private void stopServ() {
//srv.log(new Exception("stop"), "stop");
if (status != ST_STOP)
srv.notifyStop();
}
Expand All @@ -165,7 +164,7 @@ public void run() {
wifiLock = wifiManager.createWifiLock(SERVICE_NAME);
}
try {
// wifiLock.acquire();
wifiLock.acquire();
code = srv.serve();
if (Main.DEBUG) {
Log.d(SERVICE_NAME, "Serve terminated with :"
Expand Down Expand Up @@ -222,7 +221,7 @@ protected void initServ() {
resetServ();
}

protected void initLogging() {
@SuppressLint("NewApi") protected void initLogging() {
if (logStream != null)
return;
File logDir = new File(protectedFS ? getExternalCacheDir()
Expand Down Expand Up @@ -413,7 +412,7 @@ String updateNetworkSettings() {
srv.arguments
.put(Acme.Serve.SSLAcceptor.ARG_KEYSTOREPASS,
config.password == null
|| config.password.isEmpty() ? "changeme"
|| "".equals(config.password) ? "changeme"
: config.password);
srv.arguments.put(Acme.Serve.SSLAcceptor.ARG_KEYSTORETYPE, "BKS");
if (Main.DEBUG)
Expand Down

0 comments on commit 389566d

Please sign in to comment.