* adapted mobile build script to new iitc build script
* got rid of some forced closes
This commit is contained in:
parent
ea8293e533
commit
70d8858c67
@ -1 +1 @@
|
|||||||
../../iitc-debug.user.js
|
../../build/local8000/total-conversion-build.user.js
|
@ -4,9 +4,10 @@ set -e
|
|||||||
|
|
||||||
cd `dirname "$0"`
|
cd `dirname "$0"`
|
||||||
cd ..
|
cd ..
|
||||||
./build.py
|
./build.py local8000
|
||||||
compressed="$(uglifyjs iitc-debug.user.js)"
|
cd build/local8000
|
||||||
echo "${compressed}" > "iitc-debug.user.js"
|
compressed="$(uglifyjs total-conversion-build.user.js)"
|
||||||
|
echo "${compressed}" > "total-conversion-build.user.js"
|
||||||
|
|
||||||
cd mobile
|
cd ../../mobile
|
||||||
ant release
|
ant release
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
<com.cradle.iitc_mobile.IITC_WebView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:id="@+id/webview"
|
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
/>
|
android:orientation="vertical" >
|
||||||
|
|
||||||
|
<com.cradle.iitc_mobile.IITC_WebView
|
||||||
|
android:id="@+id/iitc_webview"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -25,15 +25,15 @@ public class IITC_Mobile extends Activity {
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_main);
|
setContentView(R.layout.activity_main);
|
||||||
|
iitc_view = (IITC_WebView) findViewById(R.id.iitc_webview);
|
||||||
|
|
||||||
// we do not want to reload our page every time we switch orientations...
|
// we do not want to reload our page every time we switch orientations...
|
||||||
// so restore state if activity was already created
|
// so restore state if activity was already created
|
||||||
if(savedInstanceState != null) {
|
if(savedInstanceState != null) {
|
||||||
((IITC_WebView)findViewById(R.id.webview)).restoreState(savedInstanceState);
|
iitc_view.restoreState(savedInstanceState);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// load new iitc web view with ingress intel page
|
// load new iitc web view with ingress intel page
|
||||||
iitc_view= (IITC_WebView) findViewById(R.id.webview);
|
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
String action = intent.getAction();
|
String action = intent.getAction();
|
||||||
if (Intent.ACTION_VIEW.equals(action)) {
|
if (Intent.ACTION_VIEW.equals(action)) {
|
||||||
@ -99,6 +99,8 @@ public class IITC_Mobile extends Activity {
|
|||||||
iitc_view.getWebViewClient().loadIITC_JS(this);
|
iitc_view.getWebViewClient().loadIITC_JS(this);
|
||||||
} catch (IOException e1) {
|
} catch (IOException e1) {
|
||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
|
} catch (NullPointerException e2) {
|
||||||
|
e2.printStackTrace();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
// print version number
|
// print version number
|
||||||
|
Loading…
x
Reference in New Issue
Block a user