Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added video stories #23

Merged
merged 9 commits into from
Apr 26, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
covid19 story youtube video streaming added with full functionality
Abdullahfoysal committed Apr 26, 2020
commit ab2d483b21c64f0829996bd30eb86066fe3a5268
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ captures/
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
# google-services.json
google-services.json

# Freeline
freeline.py
4 changes: 4 additions & 0 deletions Covid19Shahajjo/.idea/encodings.xml

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

3 changes: 2 additions & 1 deletion Covid19Shahajjo/.idea/gradle.xml

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

32 changes: 14 additions & 18 deletions Covid19Shahajjo/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'com.android.application'

apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 29
@@ -11,6 +11,7 @@ android {
targetSdkVersion 29
versionCode 1
versionName "1.0"
multiDexEnabled true

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
@@ -21,9 +22,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

}
@@ -33,26 +35,20 @@ dependencies {

implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-firestore:21.4.2'
implementation 'com.google.firebase:firebase-database:19.2.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.1.0"
// For control over item selection of both touch and mouse driven selection
implementation "androidx.recyclerview:recyclerview-selection:1.1.0-rc01"
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.1.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-building-v8:0.6.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.11.0'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.google.code.gson:gson:2.4'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.firebase:firebase-analytics:17.2.2'


// dependency for realtime database
implementation 'com.google.firebase:firebase-analytics:17.3.0'
implementation 'com.google.firebase:firebase-database:19.2.1'
implementation 'com.firebaseui:firebase-ui-database:2.2.0'
implementation 'com.google.firebase:firebase-storage:19.1.1'
implementation 'com.google.firebase:firebase-auth:19.3.0'


implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.3'


}
apply plugin: 'com.google.gms.google-services'
31 changes: 15 additions & 16 deletions Covid19Shahajjo/app/google-services.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,42 @@
{
"project_info": {
"project_number": "230655608685",
"firebase_url": "https://testandroidfirebase-a6635.firebaseio.com",
"project_id": "testandroidfirebase-a6635",
"storage_bucket": "testandroidfirebase-a6635.appspot.com"
"project_number": "659471342983",
"firebase_url": "https://covid-19-bd-support-app-sample.firebaseio.com",
"project_id": "covid-19-bd-support-app-sample",
"storage_bucket": "covid-19-bd-support-app-sample.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:230655608685:android:b30f8c99a80a843855fc64",
"mobilesdk_app_id": "1:659471342983:android:9fc0f85ed1d01f18e78722",
"android_client_info": {
"package_name": "com.example.covid19shahajjo"
}
},
"oauth_client": [
{
"client_id": "230655608685-59acpguv1tshqhh8b05oqmegostgvqad.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.example.covid19shahajjo",
"certificate_hash": "496a70c69d9f912f6f27f80ecd43039d4c272843"
}
},
{
"client_id": "230655608685-n50dio2024q09vfg8foa2sekjunam90q.apps.googleusercontent.com",
"client_id": "659471342983-kiap51u769sb9n61uoq2g16o297et3bo.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCy9E6IAY_Jn6yBt_rKACDt7aWsb5UpVNw"
"current_key": "AIzaSyDW16XQvTjKMjyBfUUxz48uWw7W5dOLgfs"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "230655608685-n50dio2024q09vfg8foa2sekjunam90q.apps.googleusercontent.com",
"client_id": "659471342983-kiap51u769sb9n61uoq2g16o297et3bo.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "659471342983-74vgapq71n9qnq6td4igvu0sjpce6hpj.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.example"
}
}
]
}
1 change: 1 addition & 0 deletions Covid19Shahajjo/app/release/output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]
36 changes: 25 additions & 11 deletions Covid19Shahajjo/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -2,19 +2,33 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.covid19shahajjo">

<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CALL_PHONE" />

<application
android:name=".utils.ConnectivityListener"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".activities.TestCenterActivity"></activity>
<activity android:name=".activities.AboutActivity" />
<activity android:name=".activities.StatisticsActivity" />
<activity android:name=".activities.HomeActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".activities.SettingsActivity" />
<activity android:name=".activities.HelpCenterMapActivity" />
<activity android:name=".activities.ContactSupportActivity" />
<activity android:name=".activities.youtubeFullScreenActivity"
android:configChanges="orientation"
android:screenOrientation="landscape"
@@ -24,15 +38,15 @@
<activity android:name=".activities.Covid19StoryActivity"
android:screenOrientation="portrait">

<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

</activity>
<receiver
android:name=".services.ConnectivityReceiver"
android:enabled="true">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
</application>

</manifest>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.example.covid19shahajjo.activities;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

import com.example.covid19shahajjo.R;
import com.example.covid19shahajjo.utils.Enums;
import com.example.covid19shahajjo.utils.SharedStorge;

public class AboutActivity extends AppCompatActivity {
private TextView mesaage;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
mesaage = findViewById(R.id.user_message);
setText();
}

private void setUerPreferableTitle(){
Enums.Language language = SharedStorge.getUserLanguage(this);
if(language == Enums.Language.BD){
setTitle("শর্তাবলী");
}else{
setTitle("About");
}
}

public void setText(){
Enums.Language language = SharedStorge.getUserLanguage(this);
if(language == Enums.Language.EN){
mesaage.setText(R.string.message_for_user_eng);
}else{
mesaage.setText(R.string.message_for_user_ban);
}
}
}
Loading