Skip to content

Commit

Permalink
deps: update target API version to 34 (Android UDC) (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho authored Feb 18, 2024
1 parent 95eae88 commit 8d71000
Show file tree
Hide file tree
Showing 14 changed files with 551 additions and 290 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-aab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Install required platform
run: sdkmanager "platforms;android-33" "build-tools;33.0.2"
run: sdkmanager "platforms;android-34" "build-tools;34.0.0"
- name: Replace android.jar
run: |
curl -L https://github.com/Reginer/aosp-android-jar/raw/main/android-33/android.jar > /usr/local/lib/android/sdk/platforms/android-33/android.jar
curl -L https://github.com/Reginer/aosp-android-jar/raw/main/android-34/android.jar > /usr/local/lib/android/sdk/platforms/android-34/android.jar
- name: Build App Bundle
id: build_aab
run: |
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Sign APK
run: |
echo "${KEY_PASSWORD}" | \
$ANDROID_SDK_ROOT/build-tools/33.0.2/apksigner sign \
$ANDROID_SDK_ROOT/build-tools/34.0.0/apksigner sign \
--ks keystore.jks --ks-key-alias "${KEY_ALIAS}" \
--key-pass "env:KEY_PASSWORD" \
--out dev.bluehouse.enablevolte.aab \
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Install required platform
run: sdkmanager "platforms;android-33" "build-tools;33.0.2"
run: sdkmanager "platforms;android-34" "build-tools;34.0.0"
- name: Replace android.jar
run: |
curl -L https://github.com/Reginer/aosp-android-jar/raw/main/android-33/android.jar > /usr/local/lib/android/sdk/platforms/android-33/android.jar
curl -L https://github.com/Reginer/aosp-android-jar/raw/main/android-34/android.jar > /usr/local/lib/android/sdk/platforms/android-34/android.jar
- name: Build APK
id: build_apk
run: |
Expand All @@ -51,7 +51,7 @@ jobs:
BUILD_TYPE: ${{ inputs.build-type }}
RUN_ID: ${{ github.run_id }}
- name: align APK with zipalign
run: $ANDROID_SDK_ROOT/build-tools/33.0.2/zipalign -v -p 4 app/build/outputs/apk/${BUILD_TYPE}/${FILENAME} app-unsigned-aligned.apk
run: $ANDROID_SDK_ROOT/build-tools/34.0.0/zipalign -v -p 4 app/build/outputs/apk/${BUILD_TYPE}/${FILENAME} app-unsigned-aligned.apk
env:
BUILD_TYPE: ${{ inputs.build-type }}
FILENAME: ${{ steps.build_apk.outputs.build_filename }}
Expand All @@ -60,7 +60,7 @@ jobs:
env:
KEYSTORE_B64: ${{ secrets.keystore }}
- name: Sign APK
run: echo "${KEY_PASSWORD}" | $ANDROID_SDK_ROOT/build-tools/33.0.2/apksigner sign --ks keystore.jks --ks-key-alias "${KEY_ALIAS}" --key-pass "env:KEY_PASSWORD" --out dev.bluehouse.enablevolte.apk app-unsigned-aligned.apk
run: echo "${KEY_PASSWORD}" | $ANDROID_SDK_ROOT/build-tools/34.0.0/apksigner sign --ks keystore.jks --ks-key-alias "${KEY_ALIAS}" --key-pass "env:KEY_PASSWORD" --out dev.bluehouse.enablevolte.apk app-unsigned-aligned.apk
env:
KEY_ALIAS: ${{ secrets.key-alias }}
KEY_PASSWORD: ${{ secrets.key-password }}
Expand Down
9 changes: 9 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

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

2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ only if installing Shizuku using ADB
5. Restart your Pixel phone a couple of times until you can see VoLTE is working.

### Build application from source
Download [patched android.jar](https://github.com/Reginer/aosp-android-jar/raw/main/android-33/android.jar), put it under `$ANDROID_PATH/sdk/platforms/android-33` and start hacking as usual.
Download [patched android.jar](https://github.com/Reginer/aosp-android-jar/raw/main/android-34/android.jar), put it under `$ANDROID_PATH/sdk/platforms/android-34` and start hacking as usual.

## FAQ

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ English version available [here](https://github.com/kyujin-cho/pixel-volte-patch
6. VoLTE가 작동하는 것을 확인할 때 까지 5분 간격으로 2-3회 Pixel 기기를 다시 시작합니다.

### APK 직접 빌드
[패치된 android.jar](https://github.com/Reginer/aosp-android-jar/raw/main/android-33/android.jar) 파일을 다운로드 후에 `$ANDROID_PATH/sdk/platforms/android-33` 경로 아래에 붙여넣습니다. 이후에 앱을 빌드 및 시작합니다.
[패치된 android.jar](https://github.com/Reginer/aosp-android-jar/raw/main/android-34/android.jar) 파일을 다운로드 후에 `$ANDROID_PATH/sdk/platforms/android-34` 경로 아래에 붙여넣습니다. 이후에 앱을 빌드 및 시작합니다.

## 자주 묻는 질문

Expand Down
28 changes: 14 additions & 14 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ plugins {

android {
namespace 'dev.bluehouse.enablevolte'
compileSdk 33
compileSdk 34

defaultConfig {
applicationId "dev.bluehouse.enablevolte"
minSdk 29
targetSdk 33
targetSdk 34
versionCode 13
versionName "1.2.8"

Expand All @@ -36,6 +36,7 @@ android {
buildFeatures {
compose true
aidl true
buildConfig true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.0"
Expand All @@ -48,18 +49,17 @@ android {
}

dependencies {
def nav_version = "2.5.3"
def material3_version = "1.1.0-beta01"
debugImplementation 'androidx.compose.ui:ui-tooling:1.6.1'
def compose_runtime_version = "1.4.0-beta01"

implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.appcompat:appcompat:1.6.0'
implementation 'com.google.android.material:material:1.8.0'
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

implementation 'androidx.activity:activity-compose:1.6.1'
implementation 'androidx.activity:activity-compose:1.8.2'

implementation "androidx.navigation:navigation-compose:$nav_version"
implementation "androidx.navigation:navigation-compose:2.7.7"

implementation "androidx.compose.runtime:runtime:$compose_runtime_version"
implementation "androidx.compose.runtime:runtime-livedata:$compose_runtime_version"
Expand All @@ -68,15 +68,15 @@ dependencies {
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"

implementation "androidx.compose.material:material:1.3.1"
implementation "androidx.compose.material3:material3:$material3_version"
implementation "androidx.compose.material:material:1.6.1"
implementation "androidx.compose.material3:material3:1.2.0"

implementation("io.arrow-kt:arrow-core:1.2.0-RC")
implementation("io.arrow-kt:arrow-fx-coroutines:1.2.0-RC")
implementation "io.arrow-kt:arrow-core:1.2.0-RC"
implementation "io.arrow-kt:arrow-fx-coroutines:1.2.0-RC"

implementation "com.google.accompanist:accompanist-systemuicontroller:0.28.0"

def shizuku_version = "13.1.0"
def shizuku_version = "13.1.5"
implementation "dev.rikka.shizuku:api:$shizuku_version"
implementation "dev.rikka.shizuku:provider:$shizuku_version"
implementation 'com.anggrayudi:android-hidden-api:30.0'
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.EnableVoLTE"
tools:targetApi="33"
tools:targetApi="34"
android:localeConfig="@xml/locales_config">
<activity
android:name=".HomeActivity"
Expand Down
Loading

0 comments on commit 8d71000

Please sign in to comment.