DUMB DEV Community

devesh kumar singh
devesh kumar singh

Posted on

React native Expo android apk

In eas.json file

this is only for expo apk for production only

{
  "cli": {
    "version": ">= 16.18.0",
    "appVersionSource": "remote"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "autoIncrement": true,
      "android": {
        "buildType": "apk"
      }
    },
    "production-apk": {
      "android": {
        "buildType": "apk",
        "gradleCommand": ":app:assembleRelease"
      }
    }
  },
  "submit": {
    "production": {}
  }
}
Enter fullscreen mode Exit fullscreen mode

For creating the ios devlopment build run in semulator

 npx expo prebuild --platform ios --clean

# Then try building again
npx expo run:ios
Enter fullscreen mode Exit fullscreen mode

apk file

{
  "cli": {
    "version": ">= 16.18.0",
    "appVersionSource": "remote"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "ios": {
        "simulator": true
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "autoIncrement": true,
      "android": {
        "buildType": "apk"
      },
      "ios": {
        "distribution": "store"
      }
    },
    "production-apk": {
      "android": {
        "buildType": "apk",
        "gradleCommand": ":app:assembleRelease"
      }
    }
  },
  "submit": {
    "production": {}
  }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
iamdeveshsingh profile image
devesh kumar singh

first comment