How to remove publish code update in expo? - react-native

I configured the module as a stand-alone app to use it. So when I'm building the Android APK, I'm running the "expo publicish," and I'm making the APK in the Android studio.
By the way, I found that if I changed the Expo source , it would be automatically updated.
How do I prevent this kind of automatic update?
expo-cli version: expo-cli 2.18.5
"expo": "^30.0.0",
my App.json
{
"expo": {
"name": "test",
"description": "This project is really great.",
"slug": "test",
"privacy": "public",
"sdkVersion": "30.0.0",
"packagerOpts": {
"config": "./rn-cli.config.js"
},
"platforms": ["android"],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"android": {
"package": "com.jackson.myapp",
"publishBundlePath": "android/app/src/main/assets/shell-app.bundle",
"publishManifestPath": "android/app/src/main/assets/shell-app-manifest.json",
"splash": {
"backgroundColor": "#000000"
}
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"usesIcloudStorage": true,
"bundleIdentifier": "com.jackson.myapps",
"publishBundlePath": "ios/mvw/Supporting/shell-app.bundle",
"publishManifestPath": "ios/mvw/Supporting/shell-app-manifest.json"
},
"isDetached": true,
"detach": {
"iosExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/ios-v2.8.4-sdk30.0.0-3de13133-1adc-4ba1-85691e570b4.tar.gz",
"androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.8.1-sdk30.0.0-0fde103b-be3d-43f9-bc48-30336971.tar.gz"
},
"scheme": "exp6c94a01048724a76bc92dca0c"
}
}

For Android, you will need to change the default settings.
you take a look at the ExpoKit note under this section
you guessing that for
AppConstants.java
, you need to set this line:
public static boolean ARE_REMOTE_UPDATES_ENABLED = false;
you have to run expo publish at least once before you make the APK.

Related

Failed to resolve plugin for module "react-native-fbads" relative to [project dir]

react-native-fbads: 7.1.0
react-native: 0.68.2
I am using an eas build for a project that is part of a managed expo workflow. I am trying to integrate Facebook ads into the app using react-native-fbads. After following their expo installation instructions in the main readme, when I attempt to run eas build --profile development --platform ios I get the following cryptic error:
Failed to resolve plugin for module "react-native-fbads" relative to "D:\Projects\pollenbbmap"
Can anyone help me resolve this error? Happy to provide any additional information.
My app.json looks like this
{
"expo": {
"owner": "gainesvilleboyz",
"name": "pollenbbmap",
"slug": "pollenbbmap",
"version": "0.0.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.arham23.pollenbbmap"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
[
"react-native-fbsdk-next",
{
"appID": "XXXX",
"clientToken": "XXX",
"displayName": "Pollen Map App",
"advertiserIDCollectionEnabled": false,
"autoLogAppEventsEnabled": false,
"isAutoInitEnabled": true,
"iosUserTrackingPermission": "This identifier will be used to deliver personalized ads to you."
}
],
"react-native-fbads"
]
}
}

Apk file which made using eas build of react native expo cli is not works on real device

I've made an app using React Native Expo Cli. It works fine on Expo Go App and I've generated apk file using eas build --profile development --platform android and eas build --platform android. But these does not work on real device.
I've used eas build for making apk because earlier I was using expo build:android but now If I write this command on cmd and hit enter then after some seconds it is showing "Unsupported SDK version: our app builders do not support SDK version 45, yet. The latest SDK version is 45.0.0. Unsupported SDK version". You can check my app.json and eas.json file.
app.json
{
"expo": {
"name": "RoyalVivahVendor",
"slug": "RoyalVivahVendor",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
},
"package": "com.royalvivah.royalvivahvendor",
"versionCode": 1
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
eas.json
{
"cli": {
"version": ">= 0.52.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
"android": {
"buildType": "apk"
}
}
},
"submit": {
"production": {}
}
}

configure google admob for expo

I am trying to integrate googles Admob service into my expo initialized react native app via the expo-ads-admob package. the package works successfully in the expo-go development environment, however when I build the app and via eas build --profile development --platform ios and install it onto my phone, it immediately closes as soon as I open it. I have already removed all imports of the Admob components within the app so it seems like just installing the package itself causes the app to crash at runtime. Since the app builds successfully, there are no error messages I can use to start debugging, any help would be greatly appreciated. This is the configuration in my app.json if that's relevant
{
"expo": {
"name": "MyApp",
"slug": "MyApp",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#FFF"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"config": {
"googleMobileAdsAppId": "ca-app-pub-TESTID"
},
"bundleIdentifier": "com.package.identifier"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFF"
},
"config": {
"googleMobileAdsAppId": "ca-app-pub-TESTID"
},
"package": "com.package.identifier"
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
expo-ads-admob is deprecated, so when using EAS Build the app breaks.
Expo itself recommends using react-native-google-mobile-ads, or try uninstalling EAS with npm uninstall -g eas-cli and using expo build.

building for android with expo

I'm trying to build my react-native app but I keep getting this error.
{
"expo": {
"name": "NuCamp",
"slug": "nucampsite",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "co.nucamp.nucampsite.student"
},
"android": {
"package": "co.nucamp.nucampsite.student"
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
this is my first time doing this and I'm completely lost. I tried searching for other people that had the same problems but I couldn't find any.
you are using expo-cli#3.9.1, as the warning explains there is a much newer version and you should install it and use it instead :) that will resolve your issue

FacebookAds: The SDK version in the ad request is no longer supported for new apps

expo SDK Version: 33, 34, 35
Platforms(Android/iOS/web/all): Android/iOS
Using expo-ads-facebook
I’m trying to integrate FacebookAds into my new app, and after the first run of the app I get:
The SDK version in the ad request is no longer supported for new apps. Please upgrade to one of the latest versions of the SDK
If I run the app again, I will get this error message:
Ad was re-loaded too frequently
The weird part is that my other app works perfect and displays ads with exactly the same configuration and setup. What it could be?
{
"expo": {
"name": "App Name",
"slug": "app",
"privacy": "public",
"sdkVersion": "34.0.0",
"facebookAppId": "xxxxxxxxxxxxxxxxxxx",
"facebookDisplayName": "App Name",
"platforms": [
"ios",
"android"
],
"version": "1.0.5",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "cover"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"icon": "./assets/ios-icon.png",
"bundleIdentifier": "com.com.com"
},
"android": {
"package": "com.com.com",
"versionCode": 5,
"icon": "./assets/icon.png",
"adaptiveIcon": {
"backgroundColor": "#445d99",
"foregroundImage": "./assets/foreground.png"
}
}
}
}
The SDK version in the ad request is no longer supported for new apps. Please upgrade to one of the latest versions of the SDK