Skip to content

Commit 7d7fcf7

Browse files
committed
First commit
0 parents  commit 7d7fcf7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1526
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures

.idea/compiler.xml

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/copyright/profiles_settings.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.0"
6+
7+
defaultConfig {
8+
applicationId "com.tutorial.authentication"
9+
minSdkVersion 15
10+
targetSdkVersion 25
11+
versionCode 1
12+
versionName "1.0"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
compile fileTree(dir: 'libs', include: ['*.jar'])
24+
testCompile 'junit:junit:4.12'
25+
compile 'com.android.support:appcompat-v7:25.0.0'
26+
compile 'com.android.support:design:25.0.0'
27+
compile 'com.google.firebase:firebase-core:9.8.0'
28+
compile 'com.google.firebase:firebase-auth:9.8.0'
29+
compile 'com.google.android.gms:play-services-auth:9.8.0'
30+
compile 'com.facebook.android:facebook-android-sdk:4.0.1'
31+
compile 'com.google.firebase:firebase-database:9.8.0'
32+
compile 'com.firebase:firebase-client-android:2.4.0'
33+
compile 'com.squareup.picasso:picasso:2.5.2'
34+
compile 'de.hdodenhof:circleimageview:1.3.0'
35+
}
36+
apply plugin: 'com.google.gms.google-services'

app/google-services.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"project_info": {
3+
"project_number": "916393918766",
4+
"firebase_url": "https://authentication-4fa99.firebaseio.com",
5+
"project_id": "authentication-4fa99",
6+
"storage_bucket": "authentication-4fa99.appspot.com"
7+
},
8+
"client": [
9+
{
10+
"client_info": {
11+
"mobilesdk_app_id": "1:916393918766:android:8a39e539a94dccee",
12+
"android_client_info": {
13+
"package_name": "com.tutorial.authentication"
14+
}
15+
},
16+
"oauth_client": [
17+
{
18+
"client_id": "916393918766-rjqug06o79ot5upmh0s0rd5ros6vc2o8.apps.googleusercontent.com",
19+
"client_type": 1,
20+
"android_info": {
21+
"package_name": "com.tutorial.authentication",
22+
"certificate_hash": "3efbd6ecd45f6e429e22c98e412291b0b99a7fa0"
23+
}
24+
},
25+
{
26+
"client_id": "916393918766-5eqgcc3mjle43mqu9judcogs1s57ad1p.apps.googleusercontent.com",
27+
"client_type": 3
28+
}
29+
],
30+
"api_key": [
31+
{
32+
"current_key": "AIzaSyD1SL38yAiYeyIAqMge_rvNrxdrnJ7diL4"
33+
}
34+
],
35+
"services": {
36+
"analytics_service": {
37+
"status": 1
38+
},
39+
"appinvite_service": {
40+
"status": 2,
41+
"other_platform_oauth_client": [
42+
{
43+
"client_id": "916393918766-5eqgcc3mjle43mqu9judcogs1s57ad1p.apps.googleusercontent.com",
44+
"client_type": 3
45+
}
46+
]
47+
},
48+
"ads_service": {
49+
"status": 2
50+
}
51+
}
52+
}
53+
],
54+
"configuration_version": "1"
55+
}

app/proguard-rules.pro

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in C:\Users\Gino Osahon\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.tutorial.authentication;
2+
3+
import android.app.Application;
4+
import android.test.ApplicationTestCase;
5+
6+
/**
7+
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
8+
*/
9+
public class ApplicationTest extends ApplicationTestCase<Application> {
10+
public ApplicationTest() {
11+
super(Application.class);
12+
}
13+
}

app/src/main/AndroidManifest.xml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.tutorial.authentication">
4+
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
7+
<application
8+
android:allowBackup="true"
9+
android:icon="@mipmap/ic_launcher"
10+
android:label="@string/app_name"
11+
android:supportsRtl="true"
12+
android:theme="@style/AppTheme">
13+
<activity android:name=".MainActivity">
14+
<intent-filter>
15+
<action android:name="android.intent.action.MAIN" />
16+
17+
<category android:name="android.intent.category.LAUNCHER" />
18+
</intent-filter>
19+
</activity>
20+
<activity android:name=".NavDrawerActivity"
21+
android:theme="@style/AppTheme.NoActionBar">
22+
</activity>
23+
<activity android:name=".BaseActivity"></activity>
24+
</application>
25+
26+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package com.tutorial.authentication;
2+
3+
import android.app.ProgressDialog;
4+
import android.support.v7.app.AppCompatActivity;
5+
import android.os.Bundle;
6+
7+
import com.firebase.client.Firebase;
8+
9+
public class BaseActivity extends AppCompatActivity {
10+
public ProgressDialog mProgressDialog;
11+
12+
@Override
13+
protected void onCreate(Bundle savedInstanceState) {
14+
super.onCreate(savedInstanceState);
15+
setContentView(R.layout.activity_base);
16+
17+
//Initialize Firebase
18+
Firebase.setAndroidContext(this);
19+
}
20+
21+
public void showProgressDialog() {
22+
if (mProgressDialog == null) {
23+
mProgressDialog = new ProgressDialog(this);
24+
mProgressDialog.setMessage(getString(R.string.loading));
25+
mProgressDialog.setIndeterminate(true);
26+
}
27+
28+
mProgressDialog.show();
29+
}
30+
31+
public void hideProgressDialog() {
32+
if (mProgressDialog != null && mProgressDialog.isShowing()) {
33+
mProgressDialog.dismiss();
34+
}
35+
}
36+
37+
@Override
38+
protected void onStop() {
39+
super.onStop();
40+
hideProgressDialog();
41+
}
42+
}

0 commit comments

Comments
 (0)