ci(build): add expo.inlineModules.watchedDirectories to fix ExpoAutolinkingPlugin
The ExpoAutolinkingPlugin requires expo.inlineModules.watchedDirectories to be set.
Without it, Gradle calls `node ... --watched-directories-serialized ''` and
node JSON.parse('') throws SyntaxError, exiting with code 1.
This commit is contained in:
@@ -153,12 +153,24 @@ jobs:
|
|||||||
ndkVersion=27.1.12297006
|
ndkVersion=27.1.12297006
|
||||||
systemProp.org.gradle.internal.http.connectionTimeout=30000
|
systemProp.org.gradle.internal.http.connectionTimeout=30000
|
||||||
systemProp.org.gradle.internal.http.socketTimeout=30000
|
systemProp.org.gradle.internal.http.socketTimeout=30000
|
||||||
|
# ExpoAutolinkingPlugin requires this; without it Gradle calls
|
||||||
|
# `node ... mirror-kotlin-inline-modules --watched-directories-serialized ''`
|
||||||
|
# and node JSON.parse('') throws SyntaxError, exiting 1.
|
||||||
|
# See ExpoAutolinkingPlugin.kt:51 (findProperty fallback to emptyList)
|
||||||
|
# and ExpoAutolinkingPlugin.kt:67 (passes value to node as-is).
|
||||||
|
expo.inlineModules.watchedDirectories=[]
|
||||||
CI_PROPS
|
CI_PROPS
|
||||||
|
|
||||||
# Verify signing config in app/build.gradle
|
# Verify signing config in app/build.gradle
|
||||||
echo "=== app/build.gradle signing section ==="
|
echo "=== app/build.gradle signing section ==="
|
||||||
grep -A 20 'signingConfigs' app/build.gradle || echo "signingConfigs not found"
|
grep -A 20 'signingConfigs' app/build.gradle || echo "signingConfigs not found"
|
||||||
|
|
||||||
|
# Diagnostic: dump full gradle.properties + verify expo.inlineModules property
|
||||||
|
echo "=== gradle.properties (final) ==="
|
||||||
|
cat gradle.properties
|
||||||
|
echo "=== expo.inlineModules check ==="
|
||||||
|
grep -c '^expo\.inlineModules\.watchedDirectories=' gradle.properties || echo "MISSING expo.inlineModules.watchedDirectories"
|
||||||
|
|
||||||
- name: Build Android release APK (arm64 only)
|
- name: Build Android release APK (arm64 only)
|
||||||
run: |
|
run: |
|
||||||
cd android
|
cd android
|
||||||
|
|||||||
Reference in New Issue
Block a user