Skip to content

Commit dee45c8

Browse files
committed
Add Twitter's Fabric library
1 parent 27856ad commit dee45c8

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

src/AndroidClient/androidchat/build.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1+
buildscript {
2+
repositories {
3+
maven { url 'https://maven.fabric.io/public' }
4+
}
5+
6+
dependencies {
7+
// These docs use an open ended version so that our plugin
8+
// can be updated quickly in response to Android tooling updates
9+
10+
// We recommend changing it to the latest version from our changelog:
11+
// https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
12+
classpath 'io.fabric.tools:gradle:1.+'
13+
}
14+
}
15+
116
apply plugin: 'com.android.application'
17+
apply plugin: 'io.fabric'
218

19+
repositories {
20+
maven { url 'https://maven.fabric.io/public' }
21+
}
322
android {
423
compileSdkVersion 25
524
buildToolsVersion "25.0.2"
@@ -38,4 +57,7 @@ dependencies {
3857
compile 'com.android.support:design:25.1.1'
3958
testCompile 'junit:junit:4.12'
4059
compile 'net.servicestack:android:1.0.27'
60+
compile('com.twitter.sdk.android:twitter:2.3.1@aar') {
61+
transitive = true;
62+
}
4163
}

src/AndroidClient/androidchat/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="servicestack.net.androidchat">
44

5+
<uses-permission android:name="android.permission.INTERNET" />
6+
57
<application
8+
android:name=".App"
69
android:allowBackup="true"
710
android:icon="@mipmap/ic_launcher"
811
android:label="@string/app_name"
@@ -20,6 +23,12 @@
2023
<activity android:name=".MainActivity">
2124

2225
</activity>
26+
27+
<meta-data
28+
android:name="io.fabric.ApiKey"
29+
android:value="b2d318d908fceea66ab422d2d31907d9444b01cc"
30+
/>
31+
2332
</application>
2433

2534
</manifest>

src/AndroidClient/androidchat/src/main/res/layout/login.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
android:layout_height="fill_parent"
2121
android:layout_marginBottom="200dp"
2222
android:gravity="center">
23+
2324
<LinearLayout
2425
android:orientation="vertical"
2526
android:layout_width="wrap_content"
@@ -38,7 +39,9 @@
3839
android:text="Twitter"
3940
android:gravity="center"
4041
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
42+
4143
</LinearLayout>
44+
4245
<LinearLayout
4346
android:orientation="vertical"
4447
android:layout_width="wrap_content"
@@ -58,6 +61,7 @@
5861
android:gravity="center"
5962
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
6063
</LinearLayout>
64+
6165
</LinearLayout>
6266
<ProgressBar
6367
android:id="@+id/progressBar"

0 commit comments

Comments
 (0)