Skip to content

Commit 6d0bfe3

Browse files
author
Azem Zejnilovic
committed
Initial commit
0 parents  commit 6d0bfe3

File tree

75 files changed

+2232
-0
lines changed

Some content is hidden

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

75 files changed

+2232
-0
lines changed

.gitignore

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

.idea/caches/build_file_checksums.ser

536 Bytes
Binary file not shown.

.idea/codeStyles/Project.xml

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

.idea/gradle.xml

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

.idea/misc.xml

+34
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

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 27
5+
defaultConfig {
6+
applicationId "com.example.bodhi64.general_knowledge_refresher"
7+
minSdkVersion 16
8+
targetSdkVersion 27
9+
versionCode 1
10+
versionName "1.0"
11+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
}
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17+
}
18+
}
19+
compileOptions {
20+
targetCompatibility 1.8
21+
sourceCompatibility 1.8
22+
}
23+
}
24+
25+
dependencies {
26+
implementation fileTree(dir: 'libs', include: ['*.jar'])
27+
implementation 'com.android.support:appcompat-v7:27.1.1'
28+
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
29+
testImplementation 'junit:junit:4.12'
30+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
31+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
32+
33+
implementation 'com.google.firebase:firebase-core:16.0.0'
34+
implementation 'com.google.firebase:firebase-database:16.0.1'
35+
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
36+
implementation 'com.android.support:cardview-v7:27.1.1'
37+
implementation 'com.android.support:design:27.1.1'
38+
implementation 'com.firebaseui:firebase-ui-database:1.2.0' // No trouble in compiling
39+
implementation 'com.squareup.picasso:picasso:2.71828'
40+
implementation "com.android.support:palette-v7:27.1.1"
41+
implementation 'com.github.bumptech.glide:glide:4.2.0'
42+
43+
44+
}
45+
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": "948878079097",
4+
"firebase_url": "https://knowledgerefresher-f6e73.firebaseio.com",
5+
"project_id": "knowledgerefresher-f6e73",
6+
"storage_bucket": "knowledgerefresher-f6e73.appspot.com"
7+
},
8+
"client": [
9+
{
10+
"client_info": {
11+
"mobilesdk_app_id": "1:948878079097:android:e30bc9c446e8eb88",
12+
"android_client_info": {
13+
"package_name": "com.example.bodhi64.general_knowledge_refresher"
14+
}
15+
},
16+
"oauth_client": [
17+
{
18+
"client_id": "948878079097-hm0qrn772d67jreunn9gnun8n06por7s.apps.googleusercontent.com",
19+
"client_type": 1,
20+
"android_info": {
21+
"package_name": "com.example.bodhi64.general_knowledge_refresher",
22+
"certificate_hash": "eff994fc7174ce4ddb730c6d588553b8e0a7b8c8"
23+
}
24+
},
25+
{
26+
"client_id": "948878079097-1qr48apfkng01a5b2tm1d8r82uma0hol.apps.googleusercontent.com",
27+
"client_type": 3
28+
}
29+
],
30+
"api_key": [
31+
{
32+
"current_key": "AIzaSyDAAfMYMr434VSM3vmDYoW4CYWJwkP6-Lw"
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": "948878079097-1qr48apfkng01a5b2tm1d8r82uma0hol.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

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.example.bodhi64.general_knowledge_refresher;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
7+
import org.junit.Test;
8+
import org.junit.runner.RunWith;
9+
10+
import static org.junit.Assert.*;
11+
12+
/**
13+
* Instrumented test, which will execute on an Android device.
14+
*
15+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16+
*/
17+
@RunWith(AndroidJUnit4.class)
18+
public class ExampleInstrumentedTest {
19+
@Test
20+
public void useAppContext() throws Exception {
21+
// Context of the app under test.
22+
Context appContext = InstrumentationRegistry.getTargetContext();
23+
24+
assertEquals("com.example.bodhi64.general_knowledge_refresher", appContext.getPackageName());
25+
}
26+
}

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.example.bodhi64.general_knowledge_refresher">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:icon="@mipmap/ic_launcher"
8+
android:label="@string/app_name"
9+
android:roundIcon="@mipmap/ic_launcher_round"
10+
android:supportsRtl="true"
11+
android:theme="@style/AppTheme">
12+
<activity android:name=".MainActivity">
13+
<intent-filter>
14+
<action android:name="android.intent.action.MAIN" />
15+
16+
<category android:name="android.intent.category.LAUNCHER" />
17+
</intent-filter>
18+
</activity>
19+
<activity android:name=".home_screen.HomeActivity" />
20+
<activity android:name=".play_screen.SetupActivity" />
21+
<activity android:name=".play_screen.PlayingActivity" />
22+
<activity android:name=".play_screen.GameOverActivity" />
23+
<activity android:name=".scores_screen.ScoresDetailsActivity"></activity>
24+
</application>
25+
26+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.example.bodhi64.general_knowledge_refresher;
2+
3+
import com.example.bodhi64.general_knowledge_refresher.model.Question;
4+
import com.example.bodhi64.general_knowledge_refresher.model.User;
5+
6+
import java.util.ArrayList;
7+
import java.util.List;
8+
9+
10+
public class Common {
11+
12+
public static String categoryId, categoryName;
13+
public static User currentUser;
14+
15+
public static List<Question> questionList= new ArrayList<>();
16+
}

0 commit comments

Comments
 (0)