Skip to content

Commit

Permalink
Update Android NDK from 19 to 28. Support 16 KB page sizes(https://de…
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingpqi123 committed Feb 20, 2025
1 parent d51f042 commit 7845f7d
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 36 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ features like video templates.
## System Requirements

- iOS 9.0 or later
- Android 4.4 or later
- Android 5.0 or later
- HarmonyOS Next 5.0.0(12) or later
- macOS 10.15 or later
- Windows 7.0 or later
Expand Down Expand Up @@ -215,8 +215,8 @@ versions, you can download the precompiled libraries from [here](https://github.
- Ninja 1.9.0+
- CMake 3.13.0+
- QT 5.13.0+
- NDK 19.2+ (**19.2.5345600 recommended**)
- Emscripten 3.1.20+ (**3.1.20 recommended**)
- NDK 28+ (**28.0.13004108 recommended**)
- Emscripten 3.1.58+

### Dependency Management

Expand Down
6 changes: 3 additions & 3 deletions README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PAG 方案目前已经接入了腾讯系 40 余款应用,包括微信,手机
## 系统要求

- iOS 9.0 版本及以上
- Android 4.4 版本及以上
- Android 5.0 版本及以上
- HarmonyOS Next 5.0.0(12) 版本及以上
- macOS 10.15 版本及以上
- Windows 7.0 版本及以上
Expand Down Expand Up @@ -204,8 +204,8 @@ Web 端更多接入方式请参考:[Web端接入指南](https://pag.io/docs/sd
- Ninja 1.9.0+
- CMake 3.13.0+
- QT 5.13.0+
- NDK 19.2+ (**推荐 19.2.5345600 版本**)
- Emscripten 3.1.20+ (**推荐 3.1.20 版本**)
- NDK 28+ (**推荐 28.0.13004108 版本**)
- Emscripten 3.1.58+

### 依赖管理

Expand Down
10 changes: 4 additions & 6 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ buildscript {
supportLibVersion = '28.0.0'
junitVersion = '4.12'
compileSdkVersion = 33
buildToolsVersion = '33.0.2'
ndkVersion = '19.2.5345600'
minSdkVersion = 19
buildToolsVersion = '35.0.0'
ndkVersion = '28.0.13004108'
minSdkVersion = 21
targetSdkVersion = 33
// Set the AGP version according to the corresponding Gradle version.
// Documentation: https://developer.android.com/build/releases/gradle-plugin#updating-gradle
agpVersion = '8.7.3'
agpVersion = '8.8.1'
appcompatVersion = '1.4.2' // after this version, compileSdkVersion must large than 31
}
repositories {
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ org.gradle.parallel=true
org.gradle.jvmargs=-Xmx4608M
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.buildFeatures.buildConfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
android.native.buildOutput=verbose
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
24 changes: 12 additions & 12 deletions android/libpag/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -127,42 +127,42 @@ signing {
project.afterEvaluate {
mergeReleaseNativeLibs.doLast {
delete {
delete project.getBuildDir().path + '/intermediates/merged_native_libs/release/out/lib/armeabi'
delete project.getBuildDir().path + '/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/armeabi'
}
copy {
from project.getBuildDir().path + '/intermediates/merged_native_libs/release/out/lib/armeabi-v7a'
into project.getBuildDir().path + '/intermediates/merged_native_libs/release/out/lib/armeabi'
from project.getBuildDir().path + '/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/armeabi-v7a'
into project.getBuildDir().path + '/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/armeabi'
include '*.so'
}
}
stripReleaseDebugSymbols.doLast {
delete {
delete project.getBuildDir().path + '/intermediates/stripped_native_libs/release/out/lib/armeabi'
delete project.getBuildDir().path + '/intermediates/stripped_native_libs/release/stripReleaseDebugSymbols/out/lib/armeabi'
}
copy {
from project.getBuildDir().path + '/intermediates/stripped_native_libs/release/out/lib/armeabi-v7a'
into project.getBuildDir().path + '/intermediates/stripped_native_libs/release/out/lib/armeabi'
from project.getBuildDir().path + '/intermediates/stripped_native_libs/release/stripReleaseDebugSymbols/out/lib/armeabi-v7a'
into project.getBuildDir().path + '/intermediates/stripped_native_libs/release/stripReleaseDebugSymbols/out/lib/armeabi'
include '*.so'
}
}
// 此处为了方便debug,保留debug版本armeabi的拷贝,方便源码接入时候的调试
mergeDebugNativeLibs.doLast {
delete {
delete project.getBuildDir().path + '/intermediates/merged_native_libs/debug/out/lib/armeabi'
delete project.getBuildDir().path + '/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/armeabi'
}
copy {
from project.getBuildDir().path + '/intermediates/merged_native_libs/debug/out/lib/armeabi-v7a'
into project.getBuildDir().path + '/intermediates/merged_native_libs/debug/out/lib/armeabi'
from project.getBuildDir().path + '/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/armeabi-v7a'
into project.getBuildDir().path + '/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out/lib/armeabi'
include '*.so'
}
}
stripDebugDebugSymbols.doLast {
delete {
delete project.getBuildDir().path + '/intermediates/stripped_native_libs/debug/out/lib/armeabi'
delete project.getBuildDir().path + '/intermediates/stripped_native_libs/debug/stripDebugDebugSymbols/out/lib/armeabi'
}
copy {
from project.getBuildDir().path + '/intermediates/stripped_native_libs/debug/out/lib/armeabi-v7a'
into project.getBuildDir().path + '/intermediates/stripped_native_libs/debug/out/lib/armeabi'
from project.getBuildDir().path + '/intermediates/stripped_native_libs/debug/stripDebugDebugSymbols/out/lib/armeabi-v7a'
into project.getBuildDir().path + '/intermediates/stripped_native_libs/debug/stripDebugDebugSymbols/out/lib/armeabi'
include '*.so'
}
}
Expand Down
4 changes: 2 additions & 2 deletions android/libpag/libs/arm64-v8a/libffavc.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions android/libpag/libs/armeabi-v7a/libffavc.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions android/libpag/libs/armeabi/libffavc.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions android/libpag/libs/x86_64/libffavc.so
100755 → 100644
Git LFS file not shown
3 changes: 1 addition & 2 deletions ohos/libpag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ versions, you can download the precompiled libraries from [here](https://github.
- Ninja 1.9.0+
- CMake 3.13.0+
- QT 5.13.0+
- NDK 19.2+ (**19.2.5345600 recommended**)
- Emscripten 3.1.20+ (**3.1.20 recommended**)
- Emscripten 3.1.58+

### Dependency Management

Expand Down

0 comments on commit 7845f7d

Please sign in to comment.