Fix buildnumber js, add more settings

This commit is contained in:
sponge
2012-08-03 03:53:20 +00:00
parent 39b54c41ab
commit 5dc9d729f4
2 changed files with 99 additions and 9 deletions

View File

@ -229,6 +229,14 @@
fo = new FileOutputStream(cfg);
bprops.store(fo, "AUTO-GENERATED FILE, DO NOT EDIT!");
fo.close();
} else {
/* just update version.props */
echo = project.createTask("echo");
echo.setMessage("Updating file='" + attributes.get("file") + "'\n" + props);
echo.perform();
fo = new FileOutputStream(cfg);
props.store(fo, "AUTO-GENERATED FILE, DO NOT EDIT!");
fo.close();
}
sp1 = 'android.versionCode="[0-9]*"';
rp1 = 'android.versionCode="' + props.getProperty("my.version.code") + '"';

View File

@ -113,6 +113,97 @@
android:dependency="DO_NOT_SAVErouter.maxParticipatingTunnels"
android:shouldDisableView="true"
/>
<!--
router.inboundPool.length=1
router.outboundPool.length=1
-->
<ListPreference
android:key="router.inboundPool.length"
android:entries="@array/setting0to3"
android:entryValues="@array/setting0to3"
android:title="inbound length"
android:summary="How many hops for inbound tunnel"
android:defaultValue="1"
/>
<ListPreference
android:key="router.outboundPool.length"
android:entries="@array/setting0to3"
android:entryValues="@array/setting0to3"
android:title="outbound length"
android:summary="How many hops for outbound tunnel"
android:defaultValue="1"
/>
<!--
router.inboundPool.lengthVariance=1
router.outboundPool.lengthVariance=1
-->
<ListPreference
android:key="router.inboundPool.lengthVariance"
android:entries="@array/setting2to2"
android:entryValues="@array/setting2to2"
android:title="inbound hop varience"
android:summary="How many hops to randomly add to inbound tunnels"
android:defaultValue="1"
/>
<ListPreference
android:key="router.outboundPool.lengthVariance"
android:entries="@array/setting2to2"
android:entryValues="@array/setting2to2"
android:title="outbound hop varience"
android:summary="How many hops to randomly add to outbound tunnels"
android:defaultValue="1"
/>
<!--
router.inboundPool.quantity=2
router.outboundPool.quantity=2
-->
<ListPreference
android:key="router.inboundPool.quantity"
android:entries="@array/setting0to3"
android:entryValues="@array/setting0to3"
android:title="inbound quantity"
android:summary="How many inbound tunnels"
android:defaultValue="2"
/>
<ListPreference
android:key="router.outboundPool.quantity"
android:entries="@array/setting0to3"
android:entryValues="@array/setting0to3"
android:title="outbound quantity"
android:summary="How many outbound tunnels"
android:defaultValue="2"
/>
<!--
router.inboundPool.backupQuantity=0
router.outboundPool.backupQuantity=0
-->
<ListPreference
android:key="router.inboundPool.backupQuantity"
android:entries="@array/setting0to3"
android:entryValues="@array/setting0to3"
android:title="inbound backup quantity"
android:summary="How many inbound tunnel backups"
android:defaultValue="0"
/>
<ListPreference
android:key="router.outboundPool.backupQuantity"
android:entries="@array/setting0to3"
android:entryValues="@array/setting0to3"
android:title="outbound backup quantity"
android:summary="How many outbound tunnel backups"
android:defaultValue="0"
/>
<!--
i2p.dir.pid=/data/data/net.i2p.android.router/files/tmp
@ -129,15 +220,6 @@
android:title=""
/>
Future advanced options:
router.inboundPool.backupQuantity=0
router.inboundPool.length=1
router.inboundPool.lengthVariance=1
router.inboundPool.quantity=2
router.outboundPool.backupQuantity=0
router.outboundPool.length=1
router.outboundPool.lengthVariance=1
router.outboundPool.quantity=2
Futute super advanced options:
prng.bufferSize=32768