Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gitLinda committed Oct 30, 2016
0 parents commit 3a9b4fe
Show file tree
Hide file tree
Showing 49 changed files with 1,356 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild
22 changes: 22 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
66 changes: 66 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apply plugin: 'com.android.application'

repositories {
mavenLocal()
flatDir {
dirs 'libs'
}
}

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "ch.juventus.bs.firebaseinstachat"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'

compile 'com.android.support:design:23.1.1'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.android.support:appcompat-v7:23.1.1'

// Google
compile 'com.google.android.gms:play-services-auth:9.4.0'

// Firebase
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.google.firebase:firebase-database:9.4.0'
compile 'com.google.firebase:firebase-auth:9.4.0'
compile 'com.google.firebase:firebase-config:9.4.0'
compile 'com.google.android.gms:play-services-appinvite:9.4.0'
compile 'com.google.firebase:firebase-messaging:9.4.0'
compile 'com.google.android.gms:play-services-ads:9.4.0'
compile 'com.google.firebase:firebase-crash:9.4.0'
// Firebase UI
compile 'com.firebaseui:firebase-ui-database:0.4.0'

// Testing dependencies
androidTestCompile 'junit:junit:4.12'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
androidTestCompile 'com.android.support.test:runner:0.4.1'
androidTestCompile 'com.android.support:support-annotations:23.2.1'
}

apply plugin: 'com.google.gms.google-services'
55 changes: 55 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"project_info": {
"project_number": "675854580794",
"firebase_url": "https://fir-instachat.firebaseio.com",
"project_id": "fir-instachat",
"storage_bucket": "fir-instachat.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:675854580794:android:71d927a57f9874ca",
"android_client_info": {
"package_name": "ch.juventus.bs.firebaseinstachat"
}
},
"oauth_client": [
{
"client_id": "675854580794-tjpfo9sagpvs2mfn91c82iglb5954cfb.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "ch.juventus.bs.firebaseinstachat",
"certificate_hash": "C031891BAF9E5277CAA03F14C27F88D98D9570D4"
}
},
{
"client_id": "675854580794-0ots1supaqob3ujn3i9jt3uk0jl0gljs.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyA-0pgE3EjFyhjwQec7YiVl7DF8wzgk_U8"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "675854580794-0ots1supaqob3ujn3i9jt3uk0jl0gljs.apps.googleusercontent.com",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}
16 changes: 16 additions & 0 deletions app/initial_messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"messages" : {
"-K2ib4H77rj0LYewF7dP" : {
"text" : "Hello",
"name" : "anonymous"
},
"-K2ib5JHRbbL0NrztUfO" : {
"text" : "How are you",
"name" : "anonymous"
},
"-K2ib62mjHh34CAUbide" : {
"text" : "I am fine",
"name" : "anonymous"
}
}
}
17 changes: 17 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /media/linda/DATA/Android/Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package ch.juventus.bs.firebaseinstachat;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("ch.juventus.bs.firebaseinstachat", appContext.getPackageName());
}
}
21 changes: 21 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ch.juventus.bs.firebaseinstachat">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".SignInActivity" />
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package ch.juventus.bs.firebaseinstachat;

/**
* Created by root on 30.10.16.
*/

public class FirebaseInstanceIdService {

private static final String TAG = "FirebaseIIDService";
private static final String FRIENDLY_ENGAGE_TOPIC = "engage";

/**
* The Application's current Instance ID token is no longer valid and thus a new one must be requested.
*/
public void onTokenRefresh() {
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package ch.juventus.bs.firebaseinstachat;

import android.util.Log;

/**
* Created by root on 30.10.16.
*/

import com.google.firebase.messaging.RemoteMessage;

public class FirebaseMessagingService {

private static final String TAG = "FMService";

public void onMessageReceived(RemoteMessage remoteMessage) {
// Handle data payload of FCM messages.
Log.d(TAG, "FCM Message Id: " + remoteMessage.getMessageId());
Log.d(TAG, "FCM Notification Message: " + remoteMessage.getNotification());
Log.d(TAG, "FCM Data Message: " + remoteMessage.getData());
}

}
Loading

0 comments on commit 3a9b4fe

Please sign in to comment.