Skip to content

Commit

Permalink
init repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosh committed Oct 24, 2016
0 parents commit f021a85
Show file tree
Hide file tree
Showing 348 changed files with 17,381 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.iml
.gradle
/local.properties
.DS_Store
/build
/captures
.externalNativeBuild
/app/google-services.json
/.idea/
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
90 changes: 90 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
apply plugin: 'com.android.application'
apply plugin: "com.neenbedankt.android-apt"

android {
compileSdkVersion 25
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "com.styleme.floating.toolbox.pro"
minSdkVersion 18
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
res.srcDirs = [
"src/main/res/",
"src/main/res/layouts/main_layouts",
"src/main/res/layouts/row_layouts",
"src/main/res/layouts/other_layouts",
"src/main/res/layouts/floating_layouts",
"src/main/res"
]
}
}
lintOptions {
quiet true
abortOnError true
htmlReport true
xmlReport true
fatal 'NewApi'
disable 'InvalidPackage'
}
}
repositories {
maven { url "https://clojars.org/repo/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "http://dl.bintray.com/amulyakhare/maven" }
maven { url "https://jitpack.io" }
}
dependencies {
ext {
supportVerion = "25.0.0"
firebase = "9.8.00"
}
compile fileTree(include: ['*.jar'], dir: 'libs')
compile "com.android.support:appcompat-v7:${supportVerion}"
compile "com.android.support:design:${supportVerion}"
compile "com.android.support:cardview-v7:${supportVerion}"
compile "com.android.support:recyclerview-v7:${supportVerion}"
compile "com.android.support:palette-v7:${supportVerion}"
compile "com.android.support:preference-v14:${supportVerion}"
compile "com.android.support:customtabs:${supportVerion}"
compile('com.github.ozodrukh:CircularReveal:2.0.1@aar') {
transitive = true;
}
compile('com.mikepenz:aboutlibraries:5.8.1@aar') {
transitive = true
}
compile project(':color-picker')
compile "com.google.firebase:firebase-messaging:${firebase}"
compile "com.google.firebase:firebase-analytics:${firebase}"
compile "com.google.firebase:firebase-database:${firebase}"
compile "com.google.firebase:firebase-auth:${firebase}"
compile "com.google.android.gms:play-services-auth:${firebase}"
compile 'com.google.code.gson:gson:2.7'
compile 'com.jakewharton:butterknife:8.4.0'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'cat.ereza:customactivityoncrash:1.5.0'
compile 'frankiesardo:icepick:3.1.0'
compile 'com.mikhaellopez:circularfillableloaders:1.2.0'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'com.github.pluscubed:recycler-fast-scroll:0.3.2@aar'
compile 'com.github.satyan:sugar:1.4'
compile 'it.sephiroth.android.library.bottomnavigation:bottom-navigation:1.0.7'
compile 'com.github.vihtarb:tooltip:0.1.8'
compile 'com.github.nisrulz:sensey:1.5.0'
compile 'org.adw.library:discrete-seekbar:1.0.1'
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'
compile 'pub.devrel:easypermissions:0.2.1'
apt 'frankiesardo:icepick-processor:3.1.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
}
apply plugin: "com.google.gms.google-services"
17 changes: 17 additions & 0 deletions app/proguard-rules.pro
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/Kosh/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 *;
#}
93 changes: 93 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.fastaccess"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>

<application
android:name=".App"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:allowBackup">
<activity
android:name=".ui.modules.main.MainView"
android:launchMode="singleTop"
android:theme="@style/SplashTheme"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/fa_shortcuts"/>
</activity>
<activity
android:name=".ui.modules.settings.SettingsView"
android:label="@string/settings"
android:theme="@style/SettingsTheme"/>

<activity
android:name=".ui.modules.settings.dialogs.CropImageActivityDialog"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@style/Transparent_Activity"/>

<activity
android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:screenOrientation="portrait"
android:theme="@style/Base.Theme.AppCompat"/>

<activity
android:name=".ui.modules.cloud.auth.LoginView"
android:configChanges="keyboardHidden|orientation|screenSize"/>

<activity
android:name=".ui.modules.cloud.backup.BackupView"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@style/Transparent_Activity"/>
<activity
android:name=".ui.modules.cloud.restore.RestoreView"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@style/Transparent_Activity"/>

<service
android:name=".provider.push.PushNotification"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>

<service android:name=".provider.service.FloatingService"/>

<receiver android:name=".provider.receiver.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>

<meta-data
android:name="DATABASE"
android:value="FA_DB.db"/>
<meta-data
android:name="VERSION"
android:value="1"/>
<meta-data
android:name="QUERY_LOG"
android:value="true"/>
<meta-data
android:name="DOMAIN_PACKAGE_NAME"
android:value="com.fastaccess.data.dao"/>
</application>

</manifest>
Binary file added app/src/main/assets/fonts/app_font.ttf
Binary file not shown.
68 changes: 68 additions & 0 deletions app/src/main/java/com/fastaccess/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
package com.fastaccess;

import android.app.Application;
import android.support.annotation.NonNull;
import android.support.v7.preference.PreferenceManager;

import com.fastaccess.helper.FileHelper;
import com.fastaccess.helper.PrefHelper;
import com.fastaccess.helper.TypeFaceHelper;
import com.fastaccess.provider.icon.IconCache;
import com.fastaccess.ui.modules.main.MainView;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.database.FirebaseDatabase;
import com.orm.SugarContext;

import cat.ereza.customactivityoncrash.CustomActivityOnCrash;

/**
* Created by Kosh on 24 May 2016, 7:51 PM
*/

public class App extends Application {

private static App instance;
private FirebaseAnalytics firebaseAnalytics;
private IconCache iconCache;

@Override public void onCreate() {
super.onCreate();
instance = this;
SugarContext.init(this.getApplicationContext());
FileHelper.initFolderName(getString(R.string.app_name));
PrefHelper.init(this.getApplicationContext());
TypeFaceHelper.generateTypeface(this.getApplicationContext());
PreferenceManager.setDefaultValues(this, R.xml.fa_settings, false);
if (!BuildConfig.DEBUG) {
CustomActivityOnCrash.setRestartActivityClass(MainView.class);
CustomActivityOnCrash.setShowErrorDetails(BuildConfig.DEBUG);
CustomActivityOnCrash.install(this);
}
FirebaseDatabase.getInstance().setPersistenceEnabled(false);
}

@NonNull public static App getInstance() {
return instance;
}

@NonNull public FirebaseAnalytics getFirebaseAnalytics() {
if (firebaseAnalytics == null) {
firebaseAnalytics = FirebaseAnalytics.getInstance(this);
}
return firebaseAnalytics;
}

@NonNull public IconCache getIconCache() {
if (iconCache == null) {
iconCache = new IconCache(this.getApplicationContext());
}
return iconCache;
}

public void flushIconPack() {
if (iconCache != null) {
iconCache.flush();
iconCache = null;
}
}
}
Loading

0 comments on commit f021a85

Please sign in to comment.