Extract UI helper and AIDL interfaces to a helper library
For apps that only want to use e.g. HTTP proxy tunnel, this will decrease the size of their APK by over 1.3 MB.
This commit is contained in:
@ -9,9 +9,9 @@ source_lang = en
|
||||
type = ANDROID
|
||||
minimum_perc = 50
|
||||
|
||||
[I2P.android_lib_client]
|
||||
file_filter = lib/client/src/main/res/values-<lang>/strings.xml
|
||||
source_file = lib/client/src/main/res/values/strings.xml
|
||||
[I2P.android_lib_helper]
|
||||
file_filter = lib/helper/src/main/res/values-<lang>/strings.xml
|
||||
source_file = lib/helper/src/main/res/values/strings.xml
|
||||
source_lang = en
|
||||
type = ANDROID
|
||||
minimum_perc = 50
|
||||
|
@ -26,6 +26,8 @@ android {
|
||||
|
||||
dependencies {
|
||||
compile project(path: ':routerjars', configuration: 'client')
|
||||
// No direct dependencies on the helper lib, but this ensures consistent library behavior
|
||||
compile project(':lib:helper')
|
||||
compile 'com.android.support:support-v4:23.1.1'
|
||||
|
||||
testCompile 'junit:junit:4.12'
|
||||
|
@ -1,4 +1,4 @@
|
||||
POM_NAME=I2P Android client library
|
||||
POM_DESCRIPTION=A client library enabling Android developers to easily add I2P Android support to their apps.
|
||||
POM_DESCRIPTION=A client library enabling Android developers to add native I2P support to their apps.
|
||||
POM_ARTIFACT_ID=client
|
||||
POM_PACKAGING=aar
|
||||
POM_PACKAGING=aar
|
||||
|
@ -1,10 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name" translatable="false">I2P Android client</string>
|
||||
<string name="yes">Yes</string>
|
||||
<string name="no">No</string>
|
||||
<string name="install_i2p_android">Install I2P Android?</string>
|
||||
<string name="you_must_have_i2p_android">You must have I2P Android installed and running. Would you like to install it?</string>
|
||||
<string name="market_i2p_android" translatable="false">market://search?q=pname:net.i2p.android</string>
|
||||
<string name="start_i2p_android">Start I2P Android?</string>
|
||||
<string name="would_you_like_to_start_i2p_android">It appears that I2P Android is not running. Would you like to start it?</string>
|
||||
</resources>
|
||||
|
4
lib/helper/gradle.properties
Normal file
4
lib/helper/gradle.properties
Normal file
@ -0,0 +1,4 @@
|
||||
POM_NAME=I2P Android helper library
|
||||
POM_DESCRIPTION=A helper library enabling Android developers to easily add I2P Android support to their apps.
|
||||
POM_ARTIFACT_ID=helper
|
||||
POM_PACKAGING=aar
|
9
lib/helper/src/main/AndroidManifest.xml
Normal file
9
lib/helper/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="net.i2p.android.lib.helper">
|
||||
|
||||
<application android:allowBackup="true"
|
||||
android:label="@string/app_name">
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
@ -13,7 +13,7 @@ import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
|
||||
import net.i2p.android.lib.client.R;
|
||||
import net.i2p.android.lib.helper.R;
|
||||
import net.i2p.android.router.service.IRouterState;
|
||||
import net.i2p.android.router.service.State;
|
||||
|
10
lib/helper/src/main/res/values/strings.xml
Normal file
10
lib/helper/src/main/res/values/strings.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<resources>
|
||||
<string name="app_name" translatable="false">I2P Android helper</string>
|
||||
<string name="yes">Yes</string>
|
||||
<string name="no">No</string>
|
||||
<string name="install_i2p_android">Install I2P Android?</string>
|
||||
<string name="you_must_have_i2p_android">You must have I2P Android installed and running. Would you like to install it?</string>
|
||||
<string name="market_i2p_android" translatable="false">market://search?q=pname:net.i2p.android</string>
|
||||
<string name="start_i2p_android">Start I2P Android?</string>
|
||||
<string name="would_you_like_to_start_i2p_android">It appears that I2P Android is not running. Would you like to start it?</string>
|
||||
</resources>
|
@ -1,4 +1,4 @@
|
||||
include ':app', ':routerjars', ':lib:client'
|
||||
include ':app', ':routerjars', ':lib:helper', ':lib:client'
|
||||
|
||||
//System.out.println("Do you want to access the network to download dependencies? (y/n)")
|
||||
//useNet = (System.console().readLine().toLowerCase() == 'y')
|
||||
|
Reference in New Issue
Block a user