Skip to content

Commit 6ddefc8

Browse files
committed
Merge pull request #5 from firebase/update-recycler-view-adapter
Add a DemoApplication and RecyclerViewDemoActivity as sample
2 parents 4e52d7d + 74f05c7 commit 6ddefc8

File tree

7 files changed

+75
-5
lines changed

7 files changed

+75
-5
lines changed

app/app.iml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
7373
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
7474
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/jars" />
75-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.0/jars" />
75+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/22.2.1/jars" />
76+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.1/jars" />
7677
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
7778
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
7879
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
@@ -90,8 +91,15 @@
9091
</content>
9192
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
9293
<orderEntry type="sourceFolder" forTests="false" />
93-
<orderEntry type="library" exported="" name="support-v4-22.2.0" level="project" />
94-
<orderEntry type="library" exported="" name="support-annotations-22.2.0" level="project" />
94+
<orderEntry type="library" exported="" name="jackson-core-2.2.2" level="project" />
95+
<orderEntry type="library" exported="" name="jackson-databind-2.2.2" level="project" />
96+
<orderEntry type="library" exported="" name="firebase-client-android-2.0.3" level="project" />
97+
<orderEntry type="library" exported="" name="support-v4-22.2.1" level="project" />
98+
<orderEntry type="library" exported="" name="tubesock-0.0.10" level="project" />
99+
<orderEntry type="library" exported="" name="recyclerview-v7-22.2.1" level="project" />
100+
<orderEntry type="library" exported="" name="jackson-annotations-2.2.2" level="project" />
101+
<orderEntry type="library" exported="" name="firebase-client-jvm-2.0.3" level="project" />
102+
<orderEntry type="library" exported="" name="support-annotations-22.2.1" level="project" />
95103
<orderEntry type="library" exported="" name="appcompat-v7-22.2.0" level="project" />
96104
</component>
97105
</module>

app/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,14 @@ android {
2222
dependencies {
2323
compile fileTree(dir: 'libs', include: ['*.jar'])
2424
compile 'com.android.support:appcompat-v7:22.2.0'
25+
compile 'com.firebase:firebase-client-android:2.0.3+'
26+
compile 'com.android.support:recyclerview-v7:22.2.1'
2527
}
28+
29+
android {
30+
packagingOptions {
31+
exclude 'META-INF/LICENSE'
32+
exclude 'META-INF/NOTICE'
33+
exclude 'META-INF/NOTICE.txt'
34+
}
35+
}

app/src/main/AndroidManifest.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.firebase.firebaseui_android">
33

4-
<application android:allowBackup="true" android:label="@string/app_name"
5-
android:icon="@mipmap/ic_launcher" android:theme="@style/AppTheme">
4+
<uses-permission android:name="android.permission.INTERNET" />
65

6+
<application
7+
android:allowBackup="true"
8+
android:name=".DemoApplication"
9+
android:label="@string/app_name"
10+
android:icon="@mipmap/ic_launcher"
11+
android:theme="@style/AppTheme">
12+
13+
<activity
14+
android:name=".RecyclerViewDemoActivity"
15+
android:label="@string/app_name">
16+
<intent-filter>
17+
<action android:name="android.intent.action.MAIN" />
18+
19+
<category android:name="android.intent.category.LAUNCHER" />
20+
</intent-filter>
21+
</activity>
722
</application>
823

924
</manifest>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.firebase.firebaseui_android;
2+
3+
import com.firebase.client.Firebase;
4+
5+
public class DemoApplication extends android.app.Application {
6+
@Override
7+
public void onCreate() {
8+
super.onCreate();
9+
Firebase.setAndroidContext(this);
10+
}
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.firebase.firebaseui_android;
2+
3+
import android.app.Activity;
4+
5+
6+
public class RecyclerViewDemoActivity extends Activity {
7+
//TODO: fill in content.
8+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:layout_width="match_parent"
6+
android:layout_height="match_parent"
7+
tools:context=".RecyclerViewDemoActivity">
8+
9+
<ListView
10+
android:id="@android:id/list"
11+
android:layout_width="fill_parent"
12+
android:layout_height="wrap_content"
13+
android:layout_alignParentTop="true"
14+
android:transcriptMode="alwaysScroll" />
15+
16+
</RelativeLayout>

library/library.iml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
7474
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
7575
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
76+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/jars" />
7677
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/22.2.0/jars" />
78+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.0/jars" />
7779
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
7880
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
7981
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />

0 commit comments

Comments
 (0)