Skip to content

Commit

Permalink
update scripts in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
phidn committed Jan 21, 2023
1 parent 2b960d0 commit 9373de2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@
"version": "1.0.2",
"private": true,
"scripts": {
"release": "yarn release-code && yarn clean && yarn bundle && yarn release-build && yarn release-folder",
"release-code": "react-native-version --never-amend",
"release-build": "cd android && gradlew bundleRelease",
"release-folder": "cd android\\app\\build\\outputs\\bundle\\release && start .",
"prod": "yarn prod-code && yarn clean && yarn bundle && yarn prod-build && yarn prod-folder",
"prod-code": "react-native-version --never-amend",
"prod-build": "cd android && gradlew bundleRelease",
"prod-folder": "cd android\\app\\build\\outputs\\bundle\\release && start .",
"bundle": "npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle",
"clean": "cd android && gradlew clean",
"apk": "yarn clean && yarn bundle && yarn apk-build && yarn apk-install",
"apk-build": "cd android && gradlew assembleDebug",
"apk-install": "adb install android/app/build/outputs/apk/debug/app-debug.apk",
"debug": "yarn clean && yarn bundle && yarn debug-build && yarn debug-install",
"debug-build": "cd android && gradlew assembleDebug",
"debug-install": "adb install android/app/build/outputs/apk/debug/app-debug.apk",
"release": "yarn clean && yarn bundle && yarn release-build && yarn release-install",
"release-build": "cd android && gradlew assembleRelease",
"release-install": "adb install android/app/build/outputs/apk/release/app-release.apk",
"ios": "react-native run-ios",
"android": "npx react-native run-android",
"start": "react-native start",
"start:rc": "react-native start --reset-cache",
"info": "react-native info",
"test": "jest",
"lint": "eslint .",
"adb-reverse": "adb reverse tcp:8081 tcp:8081",
"adb-turnOff": "adb shell input keyevent 26",
"emulator": "cd C:/Users/phidn/AppData/Local/Android/Sdk/emulator && emulator.exe -avd Pixel_4_API_29",
Expand Down
12 changes: 6 additions & 6 deletions src/screens/MeditateScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ const baseNotifeeMTAndroid = {

const MeditateScreen = ({ route, navigation }) => {
const { params } = route
if (__DEV__) {
params.duration = 40
params.interval = 10
preparationTime = 5
numberOfInviteBell = 2
}
// if (__DEV__) {
// params.duration = 40
// params.interval = 10
// preparationTime = 5
// numberOfInviteBell = 2
// }

const msDuration = sToMs(params.duration)
const msInterval = sToMs(params.interval)
Expand Down

0 comments on commit 9373de2

Please sign in to comment.