Skip to content

Commit 64e28d7

Browse files
committed
Updated instructions
1 parent cdc94bd commit 64e28d7

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Et voila: a minimal, yet fully functional, chat app in about 30 lines of code. N
226226

227227
* Install a JDK (if it's not installed yet):
228228
* `sudo apt-get install default-jdk`
229-
* Run gradlew (which will install gradle if it's not yet installed)
229+
* Run `./gradlew` (which will install gradle if it's not yet installed)
230230
* Install the Android SDK tool for Linux
231231
* `wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz`
232232
* `tar -xvzf android-sdk_r22.0.5-linux.tgz`
@@ -238,6 +238,23 @@ Et voila: a minimal, yet fully functional, chat app in about 30 lines of code. N
238238
* `android list sdk --all`
239239
* `android update sdk -u --all --filter platform-tools,android-22,extra-android-support`
240240
* `android update sdk --no-ui --filter extra`
241+
* The Android aapt tool is 32-bit only. If the machine is 64-bit, we'll need to install some compatibility libraries:
242+
* `uname -a`
243+
* > Linux puf 3.16.0-45-generic #60~14.04.1-Ubuntu SMP Fri Jul 24 21:16:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
244+
* `sudo apt-get install lib32stdc++6`
245+
* `sudo apt-get install lib32z1`
246+
* Run `./gradlew` to ensure it loads/parses the project
247+
* Now run a build `./gradlew build`
248+
* Set up for signing and uploading the aar
249+
* `vi ~/.gradle/gradle.properties`
250+
signing.keyId=94B86DB8
251+
signing.password=PrivateKeyPassword
252+
signing.secretKeyRingFile=/path/to/gpg/secring.gpg
253+
254+
sonatypeRepo=https://oss.sonatype.org/service/local/staging/deploy/maven2/
255+
sonatypeUsername=YourSonatypeJiraUsername
256+
sonatypePassword=YourSonatypeJiraPassword
257+
241258

242259
### to build/deploy
243260

library/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ signing {
105105
sign configurations.archives
106106
}
107107

108-
109108
uploadArchives {
110109
configuration = configurations.archives
111110
repositories.mavenDeployer {
@@ -123,9 +122,9 @@ uploadArchives {
123122
url 'https://github.com/firebase/FirebaseUI-Android'
124123

125124
scm {
125+
url 'https://github.com/firebase/FirebaseUI-Android'
126126
connection 'scm:git:[email protected]:firebase/FirebaseUI-Android.git'
127127
developerConnection 'scm:git:[email protected]:firebase/FirebaseUI-Android.git'
128-
url 'https://github.com/firebase/FirebaseUI-Android'
129128
}
130129

131130
organization {

library/library.iml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
8787
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
8888
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
89+
<excludeFolder url="file://$MODULE_DIR$/build/poms" />
8990
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
9091
</content>
9192
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />

0 commit comments

Comments
 (0)