Skip to content

Commit

Permalink
remove PrivExt
Browse files Browse the repository at this point in the history
no more privelidged code required
  • Loading branch information
dot166 committed Dec 11, 2024
1 parent c798752 commit 5b91872
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 76 deletions.
10 changes: 0 additions & 10 deletions PrivExt/Android.bp

This file was deleted.

46 changes: 0 additions & 46 deletions PrivExt/java/jOS/Core/Build.java

This file was deleted.

16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ contains a custom actionbar based on material components Toolbar and some other

ThemeEngine is an important component of jLib but the code for the database app is at https://github.com/dot166/jOS_ThemeEngine

## PrivExt subfolder can only be built with AOSP, rest of lib can be built with gradle or AOSP

## jLib will work ONLY ON ANDROID NOUGAT (7) AND LATER!! because 97.2% of Android devices use Android nougat or newer and it would be a nightmare to keep supporting Android Marshmallow (6) and older

## how to use it?
Expand Down Expand Up @@ -108,29 +106,19 @@ to use jLib in an AOSP Project add the module ```j.Lib``` to the static_libs sec

gradle library (main code) with AOSP Build Files

### PrivExt/

AOSP compiled java library (privileged code) included as javalib.jar in core/j-SDK-core/libs and included in AOSP Build

### lib-example/

example gradle application

## License

[![GNU GPLv3 Image](https://www.gnu.org/graphics/gplv3-127x51.png)](http://www.gnu.org/licenses/gpl-3.0.en.html)

jLib is Free Software: You can use, study share and improve it at your
will. Specifically you can redistribute and/or modify it under the terms of the
[GNU General Public License](https://www.gnu.org/licenses/gpl.html) as
published by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
see [LICENSE](LICENSE)

### NOTICE: There is code in jLib that are from other projects, Those files are licenced under the licence from their respective projects, the files, projects and licences are listed below.

ContributorRow.kt, modifierIf.kt and most of the about menu code is adapted from [Lawnchair Launcher](https://github.com/LawnchairLauncher/lawnchair) and is licenced under Apache 2.0

all files under com.dede.basic ('src/main/java/com/dede/basic' folder) are adapted from [AndroidEasterEggs](https://github.com/hushenghao/AndroidEasterEggs) and are licenced under Apache 2.0
all files under com.dede.basic ('src/com/dede/basic' folder) are adapted from [AndroidEasterEggs](https://github.com/hushenghao/AndroidEasterEggs) and are licenced under Apache 2.0

Some of the preference and holo theme related files are adapted from [The Android Open Source Project](https://source.android.com/) and are licenced under Apache 2.0

Expand Down
2 changes: 0 additions & 2 deletions j-LIB-core/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ android_library {
"j-Lib_com.mikepenz_aboutlibraries-core-android",
"j-Lib_io.coil-kt_coil-compose",
"kotlin-stdlib",
] + [
"j.Lib.PrivExt",
],

manifest: "src/main/AndroidManifest.xml",
Expand Down
5 changes: 2 additions & 3 deletions j-LIB-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ dependencies {
api("com.google.android.material:material:1.12.0")
api("androidx.core:core-ktx:1.15.0")
api("androidx.browser:browser:1.8.0")
implementation(fileTree(mapOf("dir" to "lib", "include" to listOf("*.jar"))))
api("androidx.compose.ui:ui-android:1.7.5")
api("androidx.compose.material3:material3-android:1.3.1")
api("androidx.compose.material:material-android:1.7.5")
Expand All @@ -92,8 +91,8 @@ mavenPublishing {
url = "https://github.com/dot166/jOS_j-lib"
licenses {
license {
name = "GNU General Public License, Version 3.0"
url = "https://www.gnu.org/licenses/gpl-3.0.txt"
name.set("MIT License")
url.set("https://choosealicense.com/licenses/mit/")
}
}
developers {
Expand Down
Binary file removed j-LIB-core/lib/javalib.jar
Binary file not shown.
23 changes: 23 additions & 0 deletions j-LIB-core/src/main/java/jOS/Core/Build.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package jOS.Core;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

import jOS.Core.utils.VersionUtils;

public class Build {

private static String getInternalRelease() {
Date date = new Date(android.os.Build.TIME);
String formattedDate = new SimpleDateFormat("yyyyMMdd", Locale.UK).format(date) + "00";
if (formattedDate.equals(android.os.Build.DISPLAY) && android.os.Build.USER.equals("jos")) {
return VersionUtils.getAndroidVersion() + "." + android.os.Build.DISPLAY;
}
return "0";
}


/** An Integer utilized to distinguish jOS versions */
public static final double jOS_RELEASE = Double.parseDouble(getInternalRelease());
}
2 changes: 1 addition & 1 deletion ver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.3
3.3.4

0 comments on commit 5b91872

Please sign in to comment.