forked from signalapp/Signal-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) ABS is now published as an AAR, so we can eliminate all local dependencies and bundled jars. 2) Upgrade to ABS 4.4.0 (The Last Release) and deal with the loss of Sherlock.Dialog by faking it with our own themes. 3) Remove all traces of ant. The modern world is here.
- Loading branch information
Showing
17 changed files
with
160 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
Building TextSecure | ||
=================== | ||
|
||
Fetch ActionBarSherlock: | ||
1. Ensure the 'Android Support Repository' is installed from the Android SDK manager. | ||
1. Ensure gradle >= 1.8 is installed. | ||
|
||
git clone git://github.com/JakeWharton/ActionBarSherlock.git ../ActionBarSherlock | ||
pushd ../ActionBarSherlock && git checkout 4.2.0 && popd | ||
Execute Gradle: | ||
|
||
Configure ActionBarSherlock for your android target: | ||
|
||
android update project --path ../ActionBarSherlock/library --target 1 | ||
|
||
Configure TextSecure for your android target, linking to ASB: | ||
|
||
android update project --path . --target 1 --library ../ActionBarSherlock/library | ||
|
||
Finally, both codebases must share the android-support jar. As TextSecure's is newer, use it: | ||
|
||
cp libs/android-support-v4.jar ../ActionBarSherlock/library/libs/android-support-v4.jar | ||
|
||
Assuming your android toolchain is correctly configured, it should now be possible to build the TextSecure apk. | ||
|
||
ant debug | ||
gradle build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:0.5.+' | ||
} | ||
} | ||
|
||
apply plugin: 'android' | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
url "https://raw.github.com/whispersystems/maven/master/gcm-client/releases/" | ||
} | ||
maven { | ||
url "https://raw.github.com/whispersystems/maven/master/gson/releases/" | ||
} | ||
} | ||
|
||
dependencies { | ||
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' | ||
compile 'com.googlecode.libphonenumber:libphonenumber:5.3' | ||
compile 'com.android.support:support-v4:18.0.0' | ||
compile 'org.whispersystems:gson:2.1' | ||
compile 'com.google.android.gcm:gcm-client:1.0.2' | ||
} | ||
|
||
android { | ||
compileSdkVersion 17 | ||
buildToolsVersion '17.0.0' | ||
|
||
defaultConfig { | ||
minSdkVersion 8 | ||
targetSdkVersion 17 | ||
} | ||
|
||
android { | ||
sourceSets { | ||
main { | ||
manifest.srcFile 'AndroidManifest.xml' | ||
java.srcDirs = ['src'] | ||
resources.srcDirs = ['src'] | ||
aild.srcDirs = ['src'] | ||
renderscript.srcDirs = ['src'] | ||
res.srcDirs = ['res'] | ||
assets.srcDirs = ['assets'] | ||
} | ||
} | ||
} | ||
|
||
signingConfigs { | ||
release | ||
} | ||
buildTypes { | ||
release { | ||
signingConfig signingConfigs.release | ||
} | ||
} | ||
} | ||
|
||
def Properties props = new Properties() | ||
def propFile = new File('signing.properties') | ||
|
||
if (propFile.canRead()){ | ||
props.load(new FileInputStream(propFile)) | ||
|
||
if (props !=null && | ||
props.containsKey('STORE_FILE') && | ||
props.containsKey('STORE_PASSWORD') && | ||
props.containsKey('KEY_ALIAS') && | ||
props.containsKey('KEY_PASSWORD')) | ||
{ | ||
android.signingConfigs.release.storeFile = file(props['STORE_FILE']) | ||
android.signingConfigs.release.storePassword = props['STORE_PASSWORD'] | ||
android.signingConfigs.release.keyAlias = props['KEY_ALIAS'] | ||
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD'] | ||
} else { | ||
println 'signing.properties found but some entries are missing' | ||
android.buildTypes.release.signingConfig = null | ||
} | ||
}else { | ||
println 'signing.properties not found' | ||
android.buildTypes.release.signingConfig = null | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="TextSecure.Light.Dialog" parent="@android:style/Theme.Holo.Light.Dialog"/> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters