-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
drop database twitter; | ||
create database twitter; | ||
use twitter; | ||
|
||
create table login( | ||
user_id int AUTO_INCREMENT PRIMARY KEY, | ||
first_name varchar(50), | ||
email varchar(50), | ||
password varchar(50), | ||
picture_path varchar(350) | ||
); | ||
describe login; | ||
|
||
create table following( | ||
user_id int , | ||
following_user_id int, | ||
FOREIGN KEY (user_id) REFERENCES login(user_id), | ||
FOREIGN KEY (following_user_id) REFERENCES login(user_id) | ||
); | ||
describe following; | ||
|
||
create table tweets( | ||
tweet_id int AUTO_INCREMENT PRIMARY KEY, | ||
user_id int , | ||
tweet_text varchar(50), | ||
tweet_picture varchar(350), | ||
tweet_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
FOREIGN KEY (user_id) REFERENCES login(user_id) | ||
); | ||
describe tweets; | ||
|
||
CREATE VIEW user_tweets AS | ||
SELECT tweets.tweet_id ,tweets.tweet_text,tweets.tweet_picture, | ||
tweets.tweet_date,tweets.user_id,login.first_name,login.picture_path | ||
FROM tweets | ||
inner join login | ||
on tweets.user_id =login.user_id; | ||
describe user_tweets; | ||
|
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion "25.0.0" | ||
defaultConfig { | ||
applicationId "com.alrubaye.twitterdem" | ||
minSdkVersion 12 | ||
targetSdkVersion 25 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
}) | ||
compile 'com.android.support:appcompat-v7:25.0.0' | ||
testCompile 'junit:junit:4.12' | ||
compile 'com.google.firebase:firebase-core:9.6.1' | ||
compile 'com.google.firebase:firebase-storage:9.6.1' | ||
compile 'com.google.firebase:firebase-auth:9.6.1' | ||
compile 'com.squareup.picasso:picasso:2.5.2' | ||
} | ||
apply plugin: 'com.google.gms.google-services' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "21845150751", | ||
"firebase_url": "https://firbasedemo-6228f.firebaseio.com", | ||
"project_id": "firbasedemo-6228f", | ||
"storage_bucket": "firbasedemo-6228f.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:21845150751:android:8592e90db472ebb7", | ||
"android_client_info": { | ||
"package_name": "com.hussienalrubaye.androidfirebase" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "21845150751-tiq6jqsk2ndfvlvgtnlc659jsakg5csn.apps.googleusercontent.com", | ||
"client_type": 1, | ||
"android_info": { | ||
"package_name": "com.hussienalrubaye.androidfirebase", | ||
"certificate_hash": "76A07B52241638F10FB6D3CF8F6B855F929169DC" | ||
} | ||
}, | ||
{ | ||
"client_id": "21845150751-m2e88crhtgshikohp6jmeln4o4ut014k.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyBrmRClRWJF_SsRTnHUCufUo6808FJFa7I" | ||
} | ||
], | ||
"services": { | ||
"analytics_service": { | ||
"status": 1 | ||
}, | ||
"appinvite_service": { | ||
"status": 2, | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "21845150751-m2e88crhtgshikohp6jmeln4o4ut014k.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
}, | ||
"ads_service": { | ||
"status": 2 | ||
} | ||
} | ||
}, | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:21845150751:android:679da90dbe15c5b2", | ||
"android_client_info": { | ||
"package_name": "com.alrubye.firstapp" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "21845150751-5tk4fg7c1k9l81ll5q8lihmtnp1olt0c.apps.googleusercontent.com", | ||
"client_type": 1, | ||
"android_info": { | ||
"package_name": "com.alrubye.firstapp", | ||
"certificate_hash": "76A07B52241638F10FB6D3CF8F6B855F929169DC" | ||
} | ||
}, | ||
{ | ||
"client_id": "21845150751-m2e88crhtgshikohp6jmeln4o4ut014k.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyBrmRClRWJF_SsRTnHUCufUo6808FJFa7I" | ||
} | ||
], | ||
"services": { | ||
"analytics_service": { | ||
"status": 1 | ||
}, | ||
"appinvite_service": { | ||
"status": 1, | ||
"other_platform_oauth_client": [] | ||
}, | ||
"ads_service": { | ||
"status": 2 | ||
} | ||
} | ||
}, | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:21845150751:android:3162a499db69de48", | ||
"android_client_info": { | ||
"package_name": "com.alrubaye.twitterdem" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "21845150751-m2e88crhtgshikohp6jmeln4o4ut014k.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyBrmRClRWJF_SsRTnHUCufUo6808FJFa7I" | ||
} | ||
], | ||
"services": { | ||
"analytics_service": { | ||
"status": 1 | ||
}, | ||
"appinvite_service": { | ||
"status": 1, | ||
"other_platform_oauth_client": [] | ||
}, | ||
"ads_service": { | ||
"status": 2 | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
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 /Users/hussienalrubaye/Library/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 com.alrubaye.twitterdem; | ||
|
||
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("com.alrubaye.twitterdem", appContext.getPackageName()); | ||
} | ||
} |