File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 58
58
"de" : " ./i18n/de.json"
59
59
},
60
60
"plugins" : [
61
+ [" ./scripts/removeDKBuildId.js" ],
61
62
[
62
63
" expo-build-properties" ,
63
64
{
64
65
"android" : {
65
- "usesCleartextTraffic" : true ,
66
- "ndk" : {
67
- "arguments" : " APP_LDFLAGS=--build-id=none"
68
- }
66
+ "usesCleartextTraffic" : true
69
67
}
70
68
}
71
69
],
Original file line number Diff line number Diff line change
1
+ const {
2
+ withAppBuildGradle,
3
+ } = require ( "@expo/config-plugins/build/plugins/android-plugins.js" ) ;
4
+
5
+ const withNDKBuildId = ( config ) => {
6
+ return withAppBuildGradle ( config , ( gradleConfig ) => {
7
+ if ( typeof gradleConfig . modResults . contents === "string" ) {
8
+ gradleConfig . modResults . contents =
9
+ gradleConfig . modResults . contents . replace (
10
+ "defaultConfig {" ,
11
+ `defaultConfig {
12
+ externalNativeBuild {
13
+ ndkBuild {
14
+ arguments "APP_LDFLAGS=--build-id=none"
15
+ }
16
+ }` ,
17
+ ) ;
18
+ }
19
+ return gradleConfig ;
20
+ } ) ;
21
+ } ;
22
+
23
+ module . exports = withNDKBuildId ;
You can’t perform that action at this time.
0 commit comments