Skip to content

expo-build-properties doesn't set up Gradle properties and iOS doesn't build the app #26572

Open

Description

Current Behavior

I create a blank Expo project with Nx create with this package https://github.com/guillempuche/test-nx-expo/blob/main/apps/expo/package.json (Emily already fixed a problem #26285 (comment)).

When @nx/expo installs expo-build-properties and then runs the Expo app with Expo properties configured https://docs.expo.dev/versions/latest/sdk/build-properties/, Gradle doesn't apply the configuration.

iOS Pod file has the property in ios/Podfile.properties.json, but there's an error building the app on iOS simulator.

Expo build properties are found at apps/expo/app.json https://github.com/guillempuche/test-nx-expo/blob/main/apps/expo/app.json#L46:

      [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 34,
            "minSdkVersion": 26,
            "targetSdkVersion": 34
          },
          "ios": {
            "deploymentTarget": "13.4"
          }
        }
      ]

Expected Behavior

  • Package expo-build-properties is added to package.json
  • Android app builds with Gradle properties in android/gradle.properties compileSdkVersion and minSdkVersion
  • iOS app builds

GitHub Repo

https://github.com/guillempuche/test-nx-expo/

Steps to Reproduce

  1. npm i
  2. npm exec nx run expo:install expo-build-properties
  3. Android npm exec nx run expo:run-android and iOS `npm exec nx run expo:run-ios
  4. Nx doesn't sync expo-build-properties to app's package.json neither build the app successfully.

Nx Report

Node   : 20.14.0
OS     : darwin-arm64
npm    : 10.7.0

nx                 : 19.2.3
@nx/js             : 19.2.3
@nx/jest           : 19.2.3
@nx/linter         : 19.2.3
@nx/eslint         : 19.2.3
@nx/workspace      : 19.2.3
@nx/detox          : 19.2.3
@nx/devkit         : 19.2.3
@nx/eslint-plugin  : 19.2.3
@nx/expo           : 19.2.3
@nx/react          : 19.2.3
@nrwl/tao          : 19.2.3
@nx/web            : 19.2.3
@nx/webpack        : 19.2.3
typescript         : 5.3.3
---------------------------------------
Registered Plugins:
@nx/expo/plugin
@nx/eslint/plugin
@nx/jest/plugin
@nx/detox/plugin

Failure Logs

No response

Package Manager Version

npm 10.7.0

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions