Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: write
discussions: write
Expand All @@ -37,12 +37,22 @@ jobs:
echo "packageId=$(grep namespace app/build.gradle | awk '{print $2}' | tr -d \')"
echo "versionName=v$(grep versionName app/build.gradle | awk '{print $2}' | tr -d \")"
echo "versionCode=$(grep versionCode app/build.gradle | awk '{print $2}')"
echo "LINE_versionName=$(echo '${{ env.line_ver_code }}' | awk '{print substr($0,1,2)"."substr($0,3,2)"."int(substr($0,5,1))}')"
echo "LINE_versionCode=$(grep HOOK_TARGET_VERSION app/build.gradle | awk '{print $4}' | tr -d \'\")"
echo "commit=$(echo ${{ github.sha }} | cut -c-7)"
echo "repo=$(echo ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/})"
} >> $GITHUB_ENV

- name: Set LINE versionName
run: |
LINE_versionCode="${{ env.LINE_versionCode }}"
major="${LINE_versionCode:0:2}"
minor="${LINE_versionCode:2:2}"
patch="${LINE_versionCode:4:1}"
if (( ${minor} < 10 )); then
minor="${LINE_versionCode:2:1}"
fi
echo "LINE_versionName=$(echo ${major}.${minor}.${patch})" >> $GITHUB_ENV

- name: Setup Java
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -86,10 +96,10 @@ jobs:
export STORE_PASSWORD="${{ secrets.STORE_PASSWORD }}"
export KEY_ALIAS="${{ secrets.KEY_ALIAS }}"
export KEY_PASSWORD="${{ secrets.KEY_PASSWORD }}"
./gradlew assembleRelease --no-daemon --stacktrace
./gradlew --no-daemon --stacktrace --warning-mode=all assembleRelease
cp -f app/build/outputs/apk/release/app-release.apk ${{ env.repo }}-${{ env.versionName }}.apk
else
./gradlew assembleDebug --no-daemon --stacktrace
./gradlew --no-daemon --stacktrace --warning-mode=all assembleDebug
fi

- name: LSPatch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
lock:
name: Lock
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
issues: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_moderation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
verify:
name: Verify
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
pull-requests: write
steps:
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
# IntelliJ
/.idea/
# Gradle Build
build/
/app/build/
# AGP Lint
/build/
# Android Studio Signing APK
/app/debug/
/app/release/
# VS Code
/.vscode/
# KeyStore
/app/release.jks
7 changes: 3 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {

android {
namespace 'io.github.chipppppppppp.lime'
compileSdk 34
compileSdk 35

defaultConfig {
minSdk 28
targetSdk 34
targetSdk 35
versionCode 18
versionName "1.12.1"
multiDexEnabled false
Expand Down Expand Up @@ -68,10 +68,9 @@ android {

dependencies {
compileOnly 'de.robv.android.xposed:api:82'
compileOnly files('libxposed/api-100.jar')
//noinspection GradleCompatible
implementation 'com.android.support:customtabs:23.0.0'
implementation 'org.mozilla:rhino:1.7.15'
implementation 'org.mozilla:rhino:1.8.0'
}

tasks.withType(JavaCompile).configureEach {
Expand Down
Binary file removed app/libxposed/api-100.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-keep class io.github.chipppppppppp.lime.Main
-ignorewarnings
-keepattributes LineNumberTable,SourceFile
-renamesourcefileattribute SourceFile
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ android.nonFinalResIds=false
android.enableR8.fullMode=true
android.experimental.enableNewResourceShrinker=true
android.experimental.enableNewResourceShrinker.preciseShrinking=true
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
org.gradle.configuration-cache=true
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionSha256Sum=20f1b1176237254a6fc204d8434196fa11a4cfb387567519c61556e8710aed78
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
5 changes: 2 additions & 3 deletions gradlew

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

31 changes: 31 additions & 0 deletions keystore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#/bin/bash

cd "$(dirname $(readlink -f $0))"

if [[ -f "app/release.jks" && -n "$STORE_PASSWORD" && -n "$KEY_ALIAS" && -n "$KEY_PASSWORD" ]]; then
echo "Config was already set."
read -r -p "Do you want to reconfigure? [Y/n]: " CHECK
case ${CHECK} in
Y|y|Y|y) echo ;;
*) exit ;;
esac
fi

read -r -s -p "Enter KeyStore Password: " STORE_PASSWORD
echo
read -r -p "Enter Key Alias: " KEY_ALIAS
read -r -s -p "Enter Key Password: " KEY_PASSWORD
echo
if [[ ! -f app/release.jks ]]; then
read -r -p "Where is KeyStore?: " STORE_FILE
STORE_FILE="${STORE_FILE/#\~/$HOME}"
if [[ ! -f "$STORE_FILE" ]]; then
echo "File not found: ${STORE_FILE}"
echo "Please copy the keystore file yourself to app/release.jks."
else
cp -f "${STORE_FILE}" "app/release.jks"
fi
fi
export STORE_PASSWORD
export KEY_ALIAS
export KEY_PASSWORD
7 changes: 1 addition & 6 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ pluginManagement {
mavenCentral()
}
plugins {
id 'com.android.application' version '8.8.0' apply false
id 'com.android.application' version '8.9.0' apply false
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url = "https://api.xposed.info" }
mavenLocal {
content {
includeGroup("io.github.libxposed")
}
}
}
}

Expand Down