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 ?
Related
Since yesterday i Bintray is offline https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml i have issue to create Android builds via Fastlane is there any way to avoid this issue?
I found a solution to make the builds:
React Native Project using Fastline on the Folder android => build.grandle file you can replace "jcenter()" with "mavenCentral() and grandlePluginPortal()".
I'm building android app using ionic4 and capacitor. I intent to use phonegap-plugin-barcodescanner in my app. But after installing that plugins, I began to fail building my apk. The hint I get from my Android Studio IDE is, that my app gradle using 'com.android.support:appcompat-v7:28.0.0', and the cordova gradle using "com.android.support:support-v4:27.+". I've tried to edit the cordova gradle to v4:28.0.0 (In Android Studio IDE), but still not working. What should I do?
My stack is:
node.js 6.4.1
ionic 4.12.0
angular 7.3.9
capacitor 1.0
and plugins phonegap-plugin-barcodescanner ^8.1.0
Could you show us the build.gradle files entirely?
I installed the plug-in on my project with Capacitor, and there was no problem.
Remove the plug-in, and do these steps :
npm install phonegap-plugin-barcodescanner
npm install #ionic-native/barcode-scanner
ionic cap sync
from https://ionicframework.com/docs/native/barcode-scanner
I was dealing with issues using android and not androidX, so I did then :
Refactor --> Migrate to AndroidX --> No Backup --> Do Refactor
Then do Build --> Rebuild Project
This worked for me
I cannot able to add android platform in package.json file after installing firebase cloud messaging.
"platforms": [
]
}
This is not very clear what you're saying but the way to add the android platform is to use the Ionic CLI.
You have options to use Cordova or Capacitor.
If you are just starting out it's probably best to use Cordova.
You type this into the command line:
ionic cordova platform add android
The documentation for this command is here:
ionic cordova platform - Ionic Documentation
This will update the json files for you and add all the required configuration.
You should review the documentation though if this is your first time as there are many steps before this to configure your machine:
https://ionicframework.com/docs/installation/environment
https://ionicframework.com/docs/installation/android
https://ionicframework.com/docs/building/android
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.
We developed a React Native application with Expo Kit SDK. Now, We would change the native full Firebase SDK, but before we have to uninstall Expo SDK (Expo doesn't support external native sdk services). Is there a best practice to do that as easy as possible?
Hey I believe for Expo it's called detaching, like CRNA is ejecting...
https://docs.expo.io/versions/latest/expokit/detach
1. Install exp
If you don't have it, run npm install -g exp to get our command line library.
If you haven't used exp or XDE before, the first thing you'll need to do is log in with your Expo account using exp login.
2. Make sure you have the necessary keys in app.json
Detaching requires the same keys as building a standalone app. Follow these instructions before continuing to the next step.
3. Detach
From your project directory, run exp detach. This will download the required dependencies and build native projects under the ios and android directories.
4. Set up and Run your native project
Congrats, you now have a native project with ExpoKit! Follow the directions under Developing with ExpoKit to get things set up and running.
5. Make native changes
You can do whatever you want in the Xcode and Android Studio projects.
To add third-party native modules for React Native, non-Expo-specific instructions such as react-native link should be supported. Read more details about changing native dependencies in your ExpoKit project.