I am using AWS CodeBuild to trigger the apk build for react native app. Facing issue with android home not found. I am pulling the source code from GitHub and in buildspec.yml have passed "apt update && apt install android-sdk"
If you are using the CodeBuild curated image, the Android curated images will have the Android SDK pre-installed and ANDROID_HOME environment variable available.
Related
I have a react native project which artifacts are stored in JFrog Now I want to enable JFrog Xray in it to scan all of my dependencies used in artifacts so my question is do I need to use a generic build type package or different for iOS and android like gradle package repo for android and CocoaPods package repo for iOS?
I want some refrerence or gudance how to enable JFrog Xray ?
I found huawei have HMS Toolkit Cloud Debugging for testing, is it support for React Native? or is there any way to install our apps into the cloud device?
You cannot run the react-native run-android command to directly perform debugging. You need to run the gradlew assembleDebug command to package the full APK and upload the APK to Cloud Debugging for testing.
You could directly access the CloudDebugging menu on the AppGallery Connect, as shown in the following figure:
Then select an appropriate test machine and upload the APK file for test.
According to the R&D team, we didn't have a specific adaptation for React Native. But if your app works fine on your test machine, it should be fine on Cloud Debugging as well.
To install app on Cloud Debugging, please download the HMS Toolkit plug-in in Android Studio firstly, then start Cloud Debugging and click Run app in the IDE to start the installation.
Pls kindly refer to the following link for more info:
How to install HMS Toolkit plug-in?
What is Cloud Debugging?
i am using create-react-native-app
there is no android / iOS folder
how to generate signed apk and deploye to google play store
Here are the instructions for create-react-native-app app deployment.
https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md#sharing-and-deployment
If you want to build and deploy your app yourself, you'll need to eject from CRNA and use Xcode and Android Studio.
This is usually as simple as running npm run eject in your project, which will walk you through the process. Make sure to install react-native-cli and follow the native code getting started guide for React Native.
Generating key
https://facebook.github.io/react-native/docs/signed-apk-android.html
If you don't see android/ios folders in your directory. Then type in your terminal react-native upgrade then react-native link
when i follow Expo Detached official Document Document
then Expo Detached successfully After that i Follow this step
Publish Script bundle using XDE
Build Apk using Gradle As Describe React Native
After that APK generate Successfully When i install this APK in physical device Then Blue Screen appear with "could not load app. Are You sure XDE or exp is running "
Where is i wrong
Thanks in Advance
I have developed an app in react native, but the project folder is too large(1.2GB) to upload into git and the IOS folder itself holding 0.9GB.I have done the following steps to overcome the issue
Steps Followed :-
Deleted Android and IOS folders from project folder.
Uploaded and Downloaded the project code using git.
Later run the commands like npm install and react-native upgrade
After running the above commands to generate IOS and Android folders, we are supposed to run Android version, but facing issue with IOS.
So...I request you to let me know the proper process of uploading code into git such that i can run both Android and IOS.
Make sure you have a .gitignore and make sure at a minimum that the build and node_modules folders are not included. For me 95% of the size is from that.
example gitignore