Skip to content

Commit 6b8eb89

Browse files
committed
Merge pull request #3 from firebase/puf-release-build
Puf release build
2 parents 42688c6 + e5d2e01 commit 6b8eb89

File tree

5 files changed

+105
-5
lines changed

5 files changed

+105
-5
lines changed

README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,45 @@ with:
230230

231231
## Deployment
232232

233+
### To get the build server ready to build/deploy FirebaseUI-Android
234+
235+
* Install a JDK (if it's not installed yet):
236+
* `sudo apt-get install default-jdk`
237+
* Run `./gradlew` (which will install gradle if it's not yet installed)
238+
* Install the Android SDK tool for Linux
239+
* `wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz`
240+
* `tar -xvzf android-sdk_r22.0.5-linux.tgz`
241+
* Add the android SDK path to `.bashrc`:
242+
* `export ANDROID_HOME=~/android-sdk-linux/`
243+
* `export PATH=$PATH:~/android-sdk-linux/tools`
244+
* Install the Android SDK needed for FirebaseUI
245+
* `android update sdk -u`
246+
* `android list sdk --all`
247+
* `android update sdk -u --all --filter platform-tools,android-22,extra-android-support`
248+
* `android update sdk --no-ui --filter extra`
249+
* The Android aapt tool is 32-bit only. If the machine is 64-bit, we'll need to install some compatibility libraries:
250+
* `uname -a`
251+
* > 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
252+
* `sudo apt-get install lib32stdc++6`
253+
* `sudo apt-get install lib32z1`
254+
* Run `./gradlew` to ensure it loads/parses the project
255+
* Now run a build `./gradlew build`
256+
* Set up for signing and uploading the aar
257+
* `vi ~/.gradle/gradle.properties`
258+
signing.keyId=94B86DB8
259+
signing.password=PrivateKeyPassword
260+
signing.secretKeyRingFile=/path/to/gpg/secring.gpg
261+
262+
sonatypeRepo=https://oss.sonatype.org/service/local/staging/deploy/maven2/
263+
sonatypeUsername=YourSonatypeJiraUsername
264+
sonatypePassword=YourSonatypeJiraPassword
265+
266+
267+
### to build/deploy
268+
233269
* log onto the build box
234-
* ensure that appcompat-v7 and recyclerview-v7 are in the local maven
235270
* checkout and update the master branch
236-
* `./release.sh` to build the client and update maven
271+
* `./release.sh` to build the library and update maven
237272
* close/release the repository from sonatype
238273

239274
## Contributor License Agreements

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 22
5-
buildToolsVersion "23.0.0 rc2"
5+
buildToolsVersion "22.0.1"
66

77
defaultConfig {
88
applicationId "com.firebase.firebaseui_android"

library/build.gradle

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
android {
44
compileSdkVersion 22
5-
buildToolsVersion "23.0.0 rc2"
5+
buildToolsVersion "22.0.1"
66

77
defaultConfig {
88
minSdkVersion 10
@@ -32,6 +32,69 @@ android {
3232
// options.links("http://d.android.com/reference/");
3333
// }
3434
//}
35+
36+
apply plugin: 'maven'
37+
apply plugin: 'signing'
38+
39+
version = "0.1.0"
40+
group = "com.firebase.puf"
41+
42+
configurations {
43+
archives {
44+
extendsFrom configurations.default
45+
}
46+
}
47+
48+
signing {
49+
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
50+
sign configurations.archives
51+
}
52+
53+
uploadArchives {
54+
configuration = configurations.archives
55+
repositories.mavenDeployer {
56+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
57+
58+
repository(url: sonatypeRepo) {
59+
authentication(userName: sonatypeUsername,
60+
password: sonatypePassword)
61+
}
62+
63+
pom.project {
64+
name 'FirebaseUI'
65+
packaging 'aar'
66+
description 'FirebaseUI library for Android applications'
67+
url 'https://github.com/firebase/FirebaseUI-Android'
68+
69+
scm {
70+
url 'scm:[email protected]/firebase/FirebaseUI-Android'
71+
connection 'scm:git:[email protected]:firebase/FirebaseUI-Android.git'
72+
developerConnection 'scm:git:[email protected]:firebase/FirebaseUI-Android.git'
73+
}
74+
75+
organization {
76+
name 'Firebase'
77+
url 'https://www.firebase.com/'
78+
}
79+
80+
licenses {
81+
license {
82+
name 'MIT'
83+
url 'http://firebase.mit-license.org'
84+
}
85+
}
86+
87+
developers {
88+
developer {
89+
id 'puf'
90+
name 'Frank van Puffelen'
91+
92+
}
93+
}
94+
}
95+
}
96+
}
97+
3598
dependencies {
3699
compile fileTree(dir: 'libs', include: ['*.jar'])
37100
compile 'com.android.support:appcompat-v7:22.2.0'

library/library.iml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module external.linked.project.id=":library" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="FirebaseUI-Android" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
2+
<module external.linked.project.id=":library" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.firebase" external.system.module.version="0.1.0" type="JAVA_MODULE" version="4">
33
<component name="FacetManager">
44
<facet type="android-gradle" name="Android-Gradle">
55
<configuration>
@@ -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" />

release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ fi
5050

5151
#gradle clean assembleRelease generateReleaseJavadoc
5252
gradle clean assembleRelease
53+
# gradle uploadArchives
5354

5455
###################
5556
# DEPLOY TO MAVEN #

0 commit comments

Comments
 (0)