-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major refactor, removed all of the Computable stuff in favour of an i…
…con loader
- Loading branch information
Zagura
committed
Apr 13, 2022
1 parent
c1f80c2
commit 40b2739
Showing
33 changed files
with
522 additions
and
750 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,64 @@ | ||
# Launcher utils | ||
A library for android launcher creation (very much in alpha stage) | ||
# launcherutil | ||
|
||
A library for android launcher creation (in alpha stage) | ||
|
||
## Features | ||
- App loading | ||
- Kustom variables | ||
- Icon-related utilities | ||
- Send signals to live wallpaper | ||
- Kustom variables | ||
|
||
## How to use | ||
Make sure you have the jitpack.io repo added in your project | ||
```kotlin | ||
allprojects { | ||
## Installation | ||
Add the dependency to your `build.gradle(.kts)` file: | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Kotlin</th> | ||
<th>Groovy</th> | ||
</tr> | ||
</thead> | ||
<tr> | ||
<td> | ||
<pre lang="kotlin">dependencies { | ||
// ... | ||
implementation("io.posidon:android.launcherutil:22.0") | ||
}</pre> | ||
</td> | ||
<td> | ||
<pre lang="groovy">dependencies { | ||
// ... | ||
implementation 'io.posidon:android.launcherutil:22.0' | ||
}</pre> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
And also make sure that the `jitpack.io` repository is included | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Kotlin</th> | ||
<th>Groovy</th> | ||
</tr> | ||
</thead> | ||
<tr> | ||
<td> | ||
<pre lang="kotlin">allprojects { | ||
repositories { | ||
// ... | ||
maven { | ||
url = uri("https://jitpack.io") | ||
} | ||
} | ||
} | ||
``` | ||
Add the dependency | ||
```kotlin | ||
dependencies { | ||
implementation("io.posidon:android.launcherUtils:${VERSION}") | ||
} | ||
``` | ||
}</pre> | ||
</td> | ||
<td> | ||
<pre lang="groovy">allprojects { | ||
repositories { | ||
// ... | ||
maven { url 'https://jitpack.io' } | ||
} | ||
}</pre> | ||
</td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="io.posidon.android.launcherutils.demo"> | ||
package="io.posidon.android.launcherutil.demo"> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.LauncherUtils"> | ||
android:theme="@style/Theme.launcherutil"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:name="io.posidon.android.launcherutil.demo.MainActivity" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
13 changes: 0 additions & 13 deletions
13
app/src/main/java/io/posidon/android/launcherutils/demo/App.kt
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
app/src/main/java/io/posidon/android/launcherutils/demo/AppCollection.kt
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
app/src/main/kotlin/io/posidon/android/launcherutil/demo/App.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.posidon.android.launcherutil.demo | ||
|
||
import android.os.UserHandle | ||
|
||
class App( | ||
val packageName: String, | ||
val name: String, | ||
val profile: UserHandle, | ||
val label: String | ||
) |
2 changes: 1 addition & 1 deletion
2
...droid/launcherutils/demo/AppViewHolder.kt → ...ndroid/launcherutil/demo/AppViewHolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<resources> | ||
<string name="app_name">LauncherUtils</string> | ||
<string name="app_name">launcherutil</string> | ||
<string name="choose_icon_pack">Choose icon pack</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Jun 23 08:52:45 CEST 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
Oops, something went wrong.