Skip to content

Commit 119d719

Browse files
authored
Merge pull request #4450 from TranceLove/feature/play-16kb
2 parents 622d0f8 + ecd08a4 commit 119d719

File tree

8 files changed

+33
-0
lines changed

8 files changed

+33
-0
lines changed

.github/workflows/android-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121
with:
2222
distribution: "temurin"
2323
java-version: 17
24+
- name: Set up NDK
25+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410
26+
with:
27+
ndk-version: r28c
28+
link-to-sdk: true
29+
local-cache: true
2430
- name: Check formatting using spotless
2531
uses: gradle/actions/setup-gradle@v3
2632
with:

.github/workflows/android-debug-artifact-ondemand.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
with:
4141
distribution: "temurin"
4242
java-version: 17
43+
- name: Set up NDK
44+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410
45+
with:
46+
ndk-version: r28c
47+
link-to-sdk: true
48+
local-cache: true
4349
- name: Build with Gradle
4450
uses: gradle/actions/setup-gradle@v3
4551
with:

.github/workflows/android-debug-artifact-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
with:
1515
distribution: "temurin"
1616
java-version: 17
17+
- name: Set up NDK
18+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410
19+
with:
20+
ndk-version: r28c
21+
link-to-sdk: true
22+
local-cache: true
1723
- name: Build with Gradle
1824
uses: gradle/actions/setup-gradle@v3
1925
with:

.github/workflows/android-feature.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
with:
2323
distribution: "temurin"
2424
java-version: 17
25+
- name: Set up NDK
26+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410
27+
with:
28+
ndk-version: r28c
29+
link-to-sdk: true
30+
local-cache: true
2531
- name: Check formatting using spotless
2632
uses: gradle/actions/setup-gradle@v3
2733
with:

.github/workflows/android-main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
with:
2323
distribution: "temurin"
2424
java-version: 17
25+
- name: Set up NDK
26+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410
27+
with:
28+
ndk-version: r28c
29+
link-to-sdk: true
30+
local-cache: true
2531
- name: Check formatting using spotless
2632
uses: gradle/actions/setup-gradle@v3
2733
with:

file_operations/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ android {
88

99
defaultConfig {
1010
minSdkVersion libs.versions.minSdk.get().toInteger()
11+
ndkVersion libs.versions.ndk.get()
1112

1213
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1314
consumerProguardFiles "consumer-rules.pro"

file_operations/src/main/c/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ add_library(rootoperations SHARED rootoperations.c)
1010
find_library(log-lib log)
1111

1212
target_link_libraries(rootoperations ${log-lib})
13+
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE "-Wl,-z,max-page-size=16384")

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ compileSdk = "34"
33
minSdk = "21"
44
targetSdk = "34"
55
kotlin = "1.9.25"
6+
ndk = "28.2.13676358"
67

78
jacocoAndroid = "0.2.1"
89
gradle = "8.5.2"

0 commit comments

Comments
 (0)