create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| name: Check NextJs build | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: ["main"] | |
| # Runs on any open or reopened pull request | |
| pull_request: | |
| types: [opened, reopened] # you can change this according to https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#using-multiple-events |
| import 'package:shelf_router/shelf_router.dart'; | |
| import 'package:shelf/shelf.dart'; | |
| import 'package:shelf/shelf_io.dart' as io; | |
| void start() async { | |
| // Initiate server | |
| const port = 8081; | |
| final app = Router(); | |
| // CORS Settings |
| /// flutter_background_geolocation Hello World | |
| /// https://github.com/transistorsoft/flutter_background_geolocation | |
| //// | |
| // For pretty-printing location JSON. Not a requirement of flutter_background_geolocation | |
| // | |
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' |
| # create assets folder in the current project | |
| $ mkdir android/app/src/main/assets | |
| # create bundle script | |
| $ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ | |
| # execute command to run android to create debug apk | |
| $ react-native run-android | |
| # Or change to android folder |
| #!/bin/sh | |
| UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
| # make sure the output directory exists | |
| mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" | |
| # Step 1. Build Device and Simulator versions | |
| xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build | |
| xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"