Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stanipintjuk committed Jul 29, 2016
0 parents commit cd4544b
Show file tree
Hide file tree
Showing 59 changed files with 3,670 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures


# Built application files
/*/build/

# Crashlytics configuations
com_crashlytics_export_strings.xml

# Signing files
.signing/

# User-specific configurations
.idea/libraries/
.idea/tasks.xml
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
.idea/misc.xml
.idea/modules.xml
.idea/scopes/scope_settings.xml
.idea/vcs.xml

# OS-specific files
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

.*~
23 changes: 23 additions & 0 deletions .idea/gradle.xml

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

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

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

674 changes: 674 additions & 0 deletions COPYING.txt

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#Silverfish Launcher v0.1 Alpha
This is a simple and lightweight launcher for Android (... and heavily inspired by SmartLauncher)


# Usage
The launcher consist of two pages: The home screen and the appdrawer.


On the homescreen there is a widget section and a shortcut section.
To change the widget simply long click the widget section and choose your new widget (you might also have to give widget access to Silverfish launcher).


You can add shortcuts to the homescreen by going to the app drawer (swipe right) long click an app and then drag it into the homescreen.
The homescreen will automatically position your shortcuts in such a way that they will form a square.


The app drawer is devided into multiple tabs for different application types, like SmartLauncher. Unlike SmartLauncher the apps are not automatically placed in their corresponding tabs, so you will have to place them there yourself :(

Functionality to add, remove and rename app drawer tabs will be implemented *very* soon.

#Notes
Keep in mind that this is just the first functional and stable version, so the functionality is very limited. I mostly wrote it to scratch my own itch. As my itch gets worse more functionality will be implemented. If you have an itch that you want to scratch then your commits are welcome :)

#Todo
* Make the launcher functional and stable - ✓
* Clean the code - ✓ (Almost. Spaghetti-code complaints are welcome.)
* Functionality to add, remove and rename tabs in app drawer.
* Icon support for tabs in app drawer.
* Ability to uninstall app from the app drawer.
* Functionality to change wallpaper.
* More shortcut layouts!
- circular
- square - ✓
- triangular??
* Create a settings activity to modify stuff like
- Colors
- Position of homescreen and appdrawer
- Hide or remove empty fragment
- Change shortcut layout
- Change the tab icons.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
27 changes: 27 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.0"

defaultConfig {
applicationId "com.launcher.silverfish"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "0.1-alpha"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.google.android.gms:play-services-appindexing:8.1.0'
}
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 /home/stani/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 *;
#}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.launcher.silverfish;

import android.app.Application;
import android.test.ApplicationTestCase;

/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
34 changes: 34 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.launcher.silverfish">

<uses-permission android:name="android.permission.BIND_APPWIDGET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<activity
android:name=".LauncherActivity"
android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
android:label="Silverfish Launcher"
>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</activity>

<!-- ATTENTION: This was auto-generated to add Google Play services to your project for
App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information. -->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

</application>

</manifest>
28 changes: 28 additions & 0 deletions app/src/main/java/com/launcher/silverfish/AppDetail.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright 2016 Stanislav Pintjuk
* E-mail: stanislav.pintjuk@gmail.com
*
*
* 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 3 of the License, 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.launcher.silverfish;
import android.graphics.drawable.Drawable;

public class AppDetail {
CharSequence label;
CharSequence name;
Drawable icon;
long id;
}
Loading

0 comments on commit cd4544b

Please sign in to comment.