Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions .idea/misc.xml

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

33 changes: 10 additions & 23 deletions FDAndroidClient/FDAndroidClient.iml
Original file line number Diff line number Diff line change
Expand Up @@ -62,55 +62,41 @@
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-runtime-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-safeguard" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-verifier" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-resources" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-support" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/reload-dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/restart-dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/split-apk" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 26 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="support-core-ui-26.1.0" level="project" />
<orderEntry type="library" exported="" name="support-media-compat-26.1.0" level="project" />
<orderEntry type="library" exported="" name="constraint-layout-1.0.2" level="project" />
<orderEntry type="library" exported="" name="recyclerview-v7-26.1.0" level="project" />
<orderEntry type="library" exported="" name="support-vector-drawable-26.1.0" level="project" />
<orderEntry type="library" exported="" name="support-core-utils-26.1.0" level="project" />
<orderEntry type="library" exported="" name="transition-26.1.0" level="project" />
<orderEntry type="library" exported="" name="butterknife-annotations-8.8.1" level="project" />
<orderEntry type="library" exported="" name="eventbus-2.2.1" level="project" />
<orderEntry type="library" exported="" name="support-compat-26.1.0" level="project" />
<orderEntry type="library" exported="" name="constraint-layout-solver-1.0.2" level="project" />
<orderEntry type="library" exported="" name="okio-1.13.0" level="project" />
<orderEntry type="library" exported="" name="rxjava-1.1.6" level="project" />
<orderEntry type="library" exported="" name="retrofit-2.3.0" level="project" />
Expand All @@ -129,5 +115,6 @@
<orderEntry type="library" exported="" name="appcompat-v7-26.1.0" level="project" />
<orderEntry type="library" exported="" name="design-26.1.0" level="project" />
<orderEntry type="library" exported="" name="butterknife-8.8.1" level="project" />
<orderEntry type="library" exported="" name="android-android-26" level="project" />
</component>
</module>
3 changes: 2 additions & 1 deletion FDAndroidClient/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ dependencies {
annotationProcessor "com.jakewharton:butterknife-compiler:$butterKnifeVersion"
compile "com.squareup.retrofit2:retrofit:$retrofitVersion"
compile "com.squareup.retrofit2:converter-gson:$retrofitVersion"
compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0'
compile group: 'io.reactivex', name: 'rxandroid', version: '1.2.1'

compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0'
compile 'de.greenrobot:eventbus:2.2.1'
compile 'com.android.support:design:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}
4 changes: 3 additions & 1 deletion FDAndroidClient/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@

<activity
android:name=".LoginActivity"
android:label="@string/title_activity_login"></activity>
android:label="@string/title_activity_login" />
<activity android:name=".activity.SplashScreen"
android:theme="@style/AppTheme.SplashScreen"></activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* Copyright (c) 2009-2017 Freedomotic team http://freedomotic.com
*
* This file is part of Freedomotic
*
* This Program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2, or (at your option) any later version.
*
* This Program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* Freedomotic; see the file COPYING. If not, see
* <http://www.gnu.org/licenses/>.
*/

package com.freedomotic.freedomotic.activity;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.Toast;

import com.freedomotic.freedomotic.R;

import butterknife.BindView;

public class SplashScreen extends BaseActivity {
private final int SPLASH_DISPLAY_LENGTH = 5000;
private Handler progressBarbHandler = new Handler();
public static int progressBarStatus=0;
@BindView(R.id.splash_progress_bar) ProgressBar progressBar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash_screen);
progressBar.setVisibility(View.INVISIBLE);
//This method to be used when no progress is to be done or splash screen is just for display purpose only
new Handler().postDelayed(new Runnable(){
@Override
public void run() {
//Add intent to which activity to go from splash screen
}
}, SPLASH_DISPLAY_LENGTH);
//If data loading threads are present or actual method for data loading
// progressBar.setVisibility(View.VISIBLE);
// progressBar.setMax(100);
// progressBar.setProgress(0);
// new Thread(new Runnable() {
// @Override
// public void run() {
// while (progressBarStatus < 100) {
// //call methodFor running thread process with return type int
// //progressBarStatus=method()
// progressBarStatus=progressBarStatus+1;
// }
// progressBarbHandler.post(new Runnable() {
// @Override
// public void run() {
// progressBar.setProgress(progressBarStatus);
// }
// });
// }
// });
}

@Override
protected void onStart() {
super.onStart();
}
}
53 changes: 53 additions & 0 deletions FDAndroidClient/src/main/res/layout/activity_splash_screen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2009-2017 Freedomotic team http://freedomotic.com
~
~ This file is part of Freedomotic
~
~ This Program is free software; you can redistribute it and/or modify it under
~ the terms of the GNU General Public License as published by the Free Software
~ Foundation; either version 2, or (at your option) any later version.
~
~ This Program is distributed in the hope that it will be useful, but WITHOUT
~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
~ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
~ details.
~
~ You should have received a copy of the GNU General Public License along with
~ Freedomotic; see the file COPYING. If not, see
~ <http://www.gnu.org/licenses/>.
-->

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.freedomotic.freedomotic.activity.SplashScreen">
<ImageView
android:layout_width="0dp"
android:layout_height="0dp"
android:src="@drawable/splash_screen"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="8dp"
android:layout_marginRight="8dp"
app:layout_constraintRight_toRightOf="parent"
android:layout_marginLeft="8dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="8dp" />
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
android:theme=""
app:layout_constraintRight_toRightOf="parent"
android:layout_marginLeft="8dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="8dp"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="8dp"
android:id="@+id/splash_progress_bar"
app:layout_constraintVertical_bias="0.879" />
</android.support.constraint.ConstraintLayout>
3 changes: 3 additions & 0 deletions FDAndroidClient/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
<style name="AppTheme.SplashScreen" parent="AppTheme">
<item name="android:windowBackground">@drawable/splash_screen</item>
</style>
<style name="CircularProgress" parent="Theme.AppCompat.Light">
<item name="colorAccent">@android:color/white</item>
</style>

</resources>
2 changes: 1 addition & 1 deletion fd-android-client.iml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>