diff --git a/build.py b/build.py index 55ac2f0a..055c2ef8 100755 --- a/build.py +++ b/build.py @@ -220,7 +220,7 @@ if buildMobile: os.makedirs("mobile/assets") except: pass - shutil.copy(os.path.join(outDir,"total-conversion-build.user.js"), "mobile/assets/iitc.js") + shutil.copy(os.path.join(outDir,"total-conversion-build.user.js"), "mobile/assets/total-conversion-build.user.js") # copy the user location script into the mobile folder. shutil.copy(os.path.join(outDir,"user-location.user.js"), "mobile/assets/user-location.user.js") diff --git a/mobile/AndroidManifest.xml b/mobile/AndroidManifest.xml index a9d1bb84..460d70f3 100644 --- a/mobile/AndroidManifest.xml +++ b/mobile/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="15" + android:versionName="0.3.3" > jonatkins.

Website:
http://iitc.jonatkins.com/

- Fork github:
- https://github.com/jonatkins/ingress-intel-total-conversion

- Old github:
- https://github.com/breunigs/ingress-intel-total-conversion]]> + IITC on Github:
+ https://github.com/jonatkins/ingress-intel-total-conversion]]> UI + Misc Plugins Available plugins Force desktop mode @@ -39,6 +38,9 @@ Display user location Show users position on map Developer options + Enable developer mode + If enabled, all IITC sources will be loaded from external storage of the Android device. + Please copy all sources from $IITC_folder/build/mobile/ to /sdcard/IITC_Mobile/dev/. IITC source \ No newline at end of file diff --git a/mobile/res/xml/preferences.xml b/mobile/res/xml/preferences.xml index e485de40..432b0eab 100644 --- a/mobile/res/xml/preferences.xml +++ b/mobile/res/xml/preferences.xml @@ -12,31 +12,41 @@ - - - + + + + + + + - + plugin_list = sharedPref.getStringSet("pref_plugins", null); + boolean dev_enabled = sharedPref.getBoolean("pref_dev_checkbox", true); // iterate through all enabled plugins and load them if (plugin_list != null) { @@ -114,7 +141,14 @@ public class IITC_WebViewClient extends WebViewClient { Scanner s = null; String src = ""; try { - s = new Scanner(am.open("plugins/" + plugin_array[i])).useDelimiter("\\A"); + // load plugins from external storage if dev mode are enabled + if (dev_enabled) { + File js_file = new File(dev_path + "plugins/" + plugin_array[i]); + s = new Scanner(js_file).useDelimiter("\\A"); + } + else + // load plugins from asset folder + s = new Scanner(am.open("plugins/" + plugin_array[i])).useDelimiter("\\A"); } catch (IOException e2) { // TODO Auto-generated catch block e2.printStackTrace(); @@ -127,16 +161,23 @@ public class IITC_WebViewClient extends WebViewClient { // inject the user location script if enabled in settings if (sharedPref.getBoolean("pref_user_loc", false)) - enableTracking(view); + enableTracking(view, dev_enabled); } - public void enableTracking(WebView view) { + public void enableTracking(WebView view, boolean dev_enabled) { Log.d("iitcm", "enable tracking..."); AssetManager am = context.getAssets(); Scanner s = null; String src = ""; try { - s = new Scanner(am.open("user-location.user.js")).useDelimiter("\\A"); + // load plugin from external storage if dev mode are enabled + if (dev_enabled) { + File js_file = new File(dev_path + "user-location.user.js"); + s = new Scanner(js_file).useDelimiter("\\A"); + } + else + // load plugin from asset folder + s = new Scanner(am.open("user-location.user.js")).useDelimiter("\\A"); } catch (IOException e2) { // TODO Auto-generated catch block e2.printStackTrace(); diff --git a/website/page/home.php b/website/page/home.php index a4870c5f..7bdff5c4 100644 --- a/website/page/home.php +++ b/website/page/home.php @@ -13,15 +13,22 @@ offers many more features. It is available for

Latest news

+

2nd May 2013

+

+IITC version 0.11.3 has been released. This should vastly reduce the chance of getting REQUEST_FAILED errors +while scrolling/zooming the map frequently. The passcode redemption code has been updated, and there are improvements +to the URL link handling. The portals-list plugin has been updated, and bug fixes made to the +player tracker. A new plugin to show portal levels as numbers has been added too. +

+

+IITC Mobile 0.3.2 is also available. Along with the above, this includes a new option to show your current +position on the map. +

+

28th April 2013

New website launched! A major revamp of the website has been made. Thanks to the various users who contributed logos and site templates.

-

26th April 2013

-

-IITC 0.11.2 released. This has a minor fix relating to portal visibility at different zoom levels. We now have to -match the standard intel site. This does, unfortunately, mean you need to zoom even closer to see unclaimed portals. -Also, an update to the scoreboard plugin has been released that should make it work again. -

+Older news diff --git a/website/page/mobile.php b/website/page/mobile.php index 8b6c1bb3..51a8cbe3 100644 --- a/website/page/mobile.php +++ b/website/page/mobile.php @@ -40,7 +40,7 @@ IITC Mobile is still in the early stages of development. Many things do not yet include_once ( "code/mobile-download.php" ); -$apkfile = "mobile/IITC-Mobile-0.3.apk"; +$apkfile = "release/IITC_Mobile-release.apk"; if ( file_exists($apkfile) ) diff --git a/website/page/news.php b/website/page/news.php index 6a64dfc9..9084745f 100644 --- a/website/page/news.php +++ b/website/page/news.php @@ -1,5 +1,17 @@

News

+

2nd May 2013

+

+IITC version 0.11.3 has been released. This should vastly reduce the chance of getting REQUEST_FAILED errors +while scrolling/zooming the map frequently. The passcode redemption code has been updated, and there are improvements +to the URL link handling. The portals-list plugin has been updated, and bug fixes made to the +player tracker. A new plugin to show portal levels as numbers has been added too. +

+

+IITC Mobile 0.3.2 is also available. Along with the above, this includes a new option to show your current +position on the map. +

+

28th April 2013

New website launched! A major revamp of the website has been made. Thanks to the various users who contributed diff --git a/website/page/test.php b/website/page/test.php index e16a0f3b..c91bdee0 100644 --- a/website/page/test.php +++ b/website/page/test.php @@ -19,6 +19,8 @@ include_once ( "code/desktop-download.php" ); $path = "test"; +if ( $_REQUEST['build'] == 'experimental' ) + $path = "experimental"; if ( $_REQUEST['build'] == 'dev' ) $path = "dev";