From c407c705fc1c6076ffea2fe043bf2609f36211b8 Mon Sep 17 00:00:00 2001 From: Lucem-Anb Date: Sat, 27 Oct 2018 17:27:22 +0300 Subject: [PATCH] initial commit --- .idea/assetWizardSettings.xml | 46 ----- .idea/caches/build_file_checksums.ser | Bin 586 -> 0 bytes .idea/codeStyles/Project.xml | 29 --- .idea/gradle.xml | 19 -- .idea/misc.xml | 34 ---- .idea/runConfigurations.xml | 12 -- .idea/vcs.xml | 6 - app/.gitignore | 1 - app/build.gradle | 29 --- app/proguard-rules.pro | 21 --- .../lisolo/ExampleInstrumentedTest.java | 26 --- app/src/main/AndroidManifest.xml | 24 --- .../main/java/com/lucemanb/lisolo/Main.java | 13 -- .../main/java/com/lucemanb/lisolo/Splash.java | 36 ---- .../lisolo/utils/PreferencesHelper.java | 25 --- .../drawable-v24/ic_launcher_foreground.xml | 34 ---- app/src/main/res/drawable/circular_button.xml | 7 - .../main/res/drawable/gradient_background.xml | 9 - .../main/res/drawable/ic_arrow_forward.xml | 9 - .../res/drawable/ic_launcher_background.xml | 170 ------------------ .../main/res/drawable/round_background.xml | 8 - app/src/main/res/drawable/round_buttons.xml | 8 - app/src/main/res/layout/activity_main.xml | 9 - app/src/main/res/layout/activity_splash.xml | 16 -- app/src/main/res/layout/onboard_screen_1.xml | 59 ------ app/src/main/res/layout/onboard_screen_2.xml | 35 ---- .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 - .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 - app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 3056 -> 0 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 5024 -> 0 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 2096 -> 0 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 2858 -> 0 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 4569 -> 0 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 7098 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 6464 -> 0 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 10676 -> 0 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 9250 -> 0 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 15523 -> 0 bytes app/src/main/res/values/colors.xml | 6 - app/src/main/res/values/strings.xml | 9 - app/src/main/res/values/styles.xml | 19 -- .../com/lucemanb/lisolo/ExampleUnitTest.java | 17 -- gradle/wrapper/gradle-wrapper.jar | Bin 54708 -> 0 bytes gradle/wrapper/gradle-wrapper.properties | 6 - 44 files changed, 752 deletions(-) delete mode 100644 .idea/assetWizardSettings.xml delete mode 100644 .idea/caches/build_file_checksums.ser delete mode 100644 .idea/codeStyles/Project.xml delete mode 100644 .idea/gradle.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/runConfigurations.xml delete mode 100644 .idea/vcs.xml delete mode 100644 app/.gitignore delete mode 100644 app/build.gradle delete mode 100644 app/proguard-rules.pro delete mode 100644 app/src/androidTest/java/com/lucemanb/lisolo/ExampleInstrumentedTest.java delete mode 100644 app/src/main/AndroidManifest.xml delete mode 100644 app/src/main/java/com/lucemanb/lisolo/Main.java delete mode 100644 app/src/main/java/com/lucemanb/lisolo/Splash.java delete mode 100644 app/src/main/java/com/lucemanb/lisolo/utils/PreferencesHelper.java delete mode 100644 app/src/main/res/drawable-v24/ic_launcher_foreground.xml delete mode 100644 app/src/main/res/drawable/circular_button.xml delete mode 100644 app/src/main/res/drawable/gradient_background.xml delete mode 100644 app/src/main/res/drawable/ic_arrow_forward.xml delete mode 100644 app/src/main/res/drawable/ic_launcher_background.xml delete mode 100644 app/src/main/res/drawable/round_background.xml delete mode 100644 app/src/main/res/drawable/round_buttons.xml delete mode 100644 app/src/main/res/layout/activity_main.xml delete mode 100644 app/src/main/res/layout/activity_splash.xml delete mode 100644 app/src/main/res/layout/onboard_screen_1.xml delete mode 100644 app/src/main/res/layout/onboard_screen_2.xml delete mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml delete mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/values/colors.xml delete mode 100644 app/src/main/res/values/strings.xml delete mode 100644 app/src/main/res/values/styles.xml delete mode 100644 app/src/test/java/com/lucemanb/lisolo/ExampleUnitTest.java delete mode 100644 gradle/wrapper/gradle-wrapper.jar delete mode 100644 gradle/wrapper/gradle-wrapper.properties diff --git a/.idea/assetWizardSettings.xml b/.idea/assetWizardSettings.xml deleted file mode 100644 index b3a2122..0000000 --- a/.idea/assetWizardSettings.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser deleted file mode 100644 index b46a869bebe2bc9e12357bf19970d18bc66503ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 586 zcmZ4UmVvdnh`~NNKUXg?FQq6yGexf?KR>5fFEb@IQ7^qHF(oHeub?PDD>b=9F91S2 zm1gFoxMk*~I%lLNXBU^|7Q2L-Ts|(GuF1r}Q#7BMhIJFWRF{)3Gpej>#!aPR)&h zYKcLFWI<|CNoHzsDcq1NvOPEZ88)%JY~Y;n=7&>V2?Gy`GvNxen)y%daIDEc8 o$yRjFo>}YX{C~`3S;8QQ$I+jAnOE&eSn9XQHqH3iS%IVq06(YB!vFvP diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml deleted file mode 100644 index 30aa626..0000000 --- a/.idea/codeStyles/Project.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml deleted file mode 100644 index 3f99671..0000000 --- a/.idea/gradle.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 4fa9cba..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 7f68460..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/app/build.gradle b/app/build.gradle deleted file mode 100644 index 81ff234..0000000 --- a/app/build.gradle +++ /dev/null @@ -1,29 +0,0 @@ -apply plugin: 'com.android.application' - -android { - compileSdkVersion 28 - defaultConfig { - applicationId "com.lucemanb.lisolo" - minSdkVersion 21 - targetSdkVersion 28 - versionCode 1 - versionName "1.0" - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" - } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } -} - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'com.android.support:appcompat-v7:28.0.0' - implementation project(":onboard") - implementation 'com.android.support.constraint:constraint-layout:1.1.3' - testImplementation 'junit:junit:4.12' - androidTestImplementation 'com.android.support.test:runner:1.0.2' - androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' -} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro deleted file mode 100644 index f1b4245..0000000 --- a/app/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# 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 *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/app/src/androidTest/java/com/lucemanb/lisolo/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/lucemanb/lisolo/ExampleInstrumentedTest.java deleted file mode 100644 index a248fc3..0000000 --- a/app/src/androidTest/java/com/lucemanb/lisolo/ExampleInstrumentedTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.lucemanb.lisolo; - -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.*; - -/** - * Instrumented test, which will execute on an Android device. - * - * @see Testing documentation - */ -@RunWith(AndroidJUnit4.class) -public class ExampleInstrumentedTest { - @Test - public void useAppContext() { - // Context of the app under test. - Context appContext = InstrumentationRegistry.getTargetContext(); - - assertEquals("com.lucemanb.lisolo", appContext.getPackageName()); - } -} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml deleted file mode 100644 index 4494a7d..0000000 --- a/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/java/com/lucemanb/lisolo/Main.java b/app/src/main/java/com/lucemanb/lisolo/Main.java deleted file mode 100644 index e57f440..0000000 --- a/app/src/main/java/com/lucemanb/lisolo/Main.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.lucemanb.lisolo; - -import android.support.v7.app.AppCompatActivity; -import android.os.Bundle; - -public class Main extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - } -} diff --git a/app/src/main/java/com/lucemanb/lisolo/Splash.java b/app/src/main/java/com/lucemanb/lisolo/Splash.java deleted file mode 100644 index 6b3c1a3..0000000 --- a/app/src/main/java/com/lucemanb/lisolo/Splash.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.lucemanb.lisolo; - -import android.content.Intent; -import android.os.Handler; -import android.support.v7.app.AppCompatActivity; -import android.os.Bundle; - -import com.lucemanb.lisolo.utils.PreferencesHelper; -import com.lucemanb.onboard.OnBoard; - -public class Splash extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_splash); - final boolean isFirstTime = new PreferencesHelper(this).isFirstTimeLaunch(); - new Handler().postDelayed(new Runnable() { - @Override - public void run() { - if (isFirstTime){ - int[] layouts = { - OnBoard.getSampleLayout(), - OnBoard.getSampleLayout(), - OnBoard.getSampleLayout() - }; - OnBoard board = new OnBoard(layouts, R.color.colorAccent, R.color.colorPrimary, Main.class); - board.startOnBoard(Splash.this); - } - else startActivity(new Intent(Splash.this, Main.class)); - finish(); - } - }, 4000); - } - -} diff --git a/app/src/main/java/com/lucemanb/lisolo/utils/PreferencesHelper.java b/app/src/main/java/com/lucemanb/lisolo/utils/PreferencesHelper.java deleted file mode 100644 index a53cc3d..0000000 --- a/app/src/main/java/com/lucemanb/lisolo/utils/PreferencesHelper.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.lucemanb.lisolo.utils; - -import android.content.Context; -import android.content.SharedPreferences; - -public class PreferencesHelper { - - private SharedPreferences preferences; - - private String LAUNCH_CHECK = "launch"; - - private boolean getBoolean(String key){return preferences.getBoolean(key, true);} - private void setBoolean(String key, boolean value){preferences.edit().putBoolean(key, value).apply();} - - public PreferencesHelper(Context context){ - preferences = context.getSharedPreferences("session", Context.MODE_PRIVATE); - } - - public boolean isFirstTimeLaunch(){ - return getBoolean(LAUNCH_CHECK); - } - public void setIsFirstTimeLaunch(boolean value){ - setBoolean(LAUNCH_CHECK, value); - } -} diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml deleted file mode 100644 index c7bd21d..0000000 --- a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - diff --git a/app/src/main/res/drawable/circular_button.xml b/app/src/main/res/drawable/circular_button.xml deleted file mode 100644 index 5815491..0000000 --- a/app/src/main/res/drawable/circular_button.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/gradient_background.xml b/app/src/main/res/drawable/gradient_background.xml deleted file mode 100644 index 9083e59..0000000 --- a/app/src/main/res/drawable/gradient_background.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_arrow_forward.xml b/app/src/main/res/drawable/ic_arrow_forward.xml deleted file mode 100644 index cf9e208..0000000 --- a/app/src/main/res/drawable/ic_arrow_forward.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml deleted file mode 100644 index d5fccc5..0000000 --- a/app/src/main/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/drawable/round_background.xml b/app/src/main/res/drawable/round_background.xml deleted file mode 100644 index 7191603..0000000 --- a/app/src/main/res/drawable/round_background.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/round_buttons.xml b/app/src/main/res/drawable/round_buttons.xml deleted file mode 100644 index 7191603..0000000 --- a/app/src/main/res/drawable/round_buttons.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml deleted file mode 100644 index 1881f28..0000000 --- a/app/src/main/res/layout/activity_main.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/activity_splash.xml b/app/src/main/res/layout/activity_splash.xml deleted file mode 100644 index 47d46dc..0000000 --- a/app/src/main/res/layout/activity_splash.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/onboard_screen_1.xml b/app/src/main/res/layout/onboard_screen_1.xml deleted file mode 100644 index cf05567..0000000 --- a/app/src/main/res/layout/onboard_screen_1.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/onboard_screen_2.xml b/app/src/main/res/layout/onboard_screen_2.xml deleted file mode 100644 index 17094b7..0000000 --- a/app/src/main/res/layout/onboard_screen_2.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - -