snaptivities-20548:此react_native应用程序是使用Crowdbotics www.crowdboti

  • u7_443487
  • 40.3MB
  • zip
  • 0
  • VIP专享
  • 0
  • 2022-06-13 12:36
Crowdbotics React Native支架 克隆此仓库后,您将需要安装依赖项: cd ProjectName yarn install 然后,您需要安装Podfile: cd ios pod install 安装所有依赖项以进行开发 请按照本指南进行操作,并为当前操作系统和要构建的操作系统(iOS或Android)安装正确的依赖项 设置 谷歌配置 您需要编辑两个文件才能使推送通知生效,包括Google注册和其他Google服务: ios/GoogleService-Info.plist android/app/google-services.json 您需要在Firebase控制台中创建一个项目,并更新两个文件上的所有凭据(当前文件具有无效的凭据) 另外,您将需要在Info修改URL类型,请按照说明进行操作: 最后,您需要通过xcode将GoogleServ
# Crowdbotics React Native scaffold After cloning this repo, you will need to install the dependencies: `cd ProjectName` `yarn install` Then, you need to install the Podfile: `cd ios` `pod install` ## Installing all dependencies in for development Please follow this guide and install the correct dependencies for your current OS and the OS that you want to build (iOS or Android) ## Setup ### Google config There is two files that you need to edit to make work the push notifications, google sign up and other Google Services: 1. `ios/GoogleService-Info.plist` 2. `android/app/google-services.json` You need to create a project in firebase console and update all the credentials on both files (current files have invalid credentials) Also, you will need to modify your URL types in `Info`, follow [this]( instructions: Finally, you will need to add `GoogleService-Info.plist` (file reference) to your iOS project via xcode. 1. Open `snaptivities_20548.xcodeproj`in xcode. 2. Go to main target > Build Phases > Copy Bundle resources 3. Tap un add button 4. Search the `GoogleService-Info.plist`inside `ios` folder. 5. Make sure you can see `GoogleService-Info.plist` inside in xcode. Like this: ![Expected project config]( ## Running with React Native CLI ### Running android simulator 1. Activate android emulator following this [instructions]( 2. `react-native run-android` from project home folder ### Running iOS simulator 1. Go to `ios` folder and run `pod install` (if you don't have pod installed, follow this [instructions]( ) 2. Run `react-native run-ios` from project home folder. If you find any compiling problems, try to clean your cache. From the home app folder run: `cd node_modules/react-native/scripts && ./ && cd ../../../` and `cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ && cd ../../../../` ## Running with Fastlane [Fastlane]( makes testing, building, and deploying apps easier. Install fastlane globally (`npm i -g fastlane` or `yarn i -g fastlane`). Android and iOS dependencies are the same as React Native CLI. All fastlane commands are run from the platform directory. For example, Android commands must be run from `android/`. Fastlane should be executed using `bundle exec` to ensure dependencies are managed correctly. The commands for Android and iOS are the same: - Run tests: `bundle exec fastlane tests` - Local build: `bundle exec fastlane build` - Build and upload a beta (requires signing): `bundle exec fastlane beta` - Build or promote a release: `bundle exec fastlane deploy` ### Android Publish an Android app you must first create an app in the Play Console and manually upload an APK. After the first upload run `bundle exec fastlane supply init` from `android/` to sync with the Play store. All future releases will be uploaded automatically. Android uses tracks. A beta release will build the app and upload to the beta track. Deploying will promote from beta to production. ### iOS CB developers must follow fastlane's [codesigning guide]( for using match. Match will automatically sign iOS builds. New CB developers should get access to the codesigning repo and run `bundle exec fastlane match development` from `ios/`. Not a CB developer? Create an [Apple developer]( and follow the instructions on [codesigning guide]( to setup your certificates.