Skip to content

Commit

Permalink
updates deps, add beta build
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Feb 29, 2024
1 parent 163a295 commit 260d06a
Show file tree
Hide file tree
Showing 5 changed files with 40,388 additions and 40,352 deletions.
10 changes: 6 additions & 4 deletions config/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ExpoConfig } from 'expo/config'

import { version } from './../package.json'

type AppVariant = 'preview' | 'prod' | 'dev' | undefined
type AppVariant = 'preview' | 'beta' | 'prod' | 'dev' | undefined

function nodeEnvShort(): 'test' | AppVariant {
if (!process?.env?.NODE_ENV) {
Expand All @@ -14,6 +14,7 @@ function nodeEnvShort(): 'test' | AppVariant {
if (process?.env?.NODE_ENV === 'development') { return 'dev' }
if (process?.env?.NODE_ENV === 'test') { return 'test' }
if (process?.env?.NODE_ENV === 'preview') { return 'preview' }
if (process?.env?.NODE_ENV === 'beta') { return 'beta' }
}

function appVariant(): AppVariant {
Expand All @@ -24,6 +25,7 @@ function appVariant(): AppVariant {
if (process?.env?.APP_VARIANT === 'prod') { return 'prod' }
if (process?.env?.APP_VARIANT === 'dev') { return 'dev' }
if (process?.env?.APP_VARIANT === 'preview') { return 'preview' }
if (process?.env?.APP_VARIANT === 'beta') { return 'beta' }
}

const _appVariant = appVariant() || process?.env?.APP_VARIANT || 'dev'
Expand All @@ -39,9 +41,9 @@ try {
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
const IS_DEV = _appVariant === 'dev'
// const IS_DEV = _appVariant === 'dev'
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
const IS_PREVIEW = _appVariant === 'preview'
// const IS_PREVIEW = _appVariant === 'preview'
const IS_PROD = _appVariant === 'prod'

const cameraPermission = 'eNuts requires access to your camera to scan QR codes for wallet transactions.'
Expand Down Expand Up @@ -83,7 +85,7 @@ const config: ExpoConfig = {
usesNonExemptEncryption: false
},
bundleIdentifier: 'xyz.elliptica.enuts',
buildNumber: '4'
buildNumber: '5'
},
android: {
icon: './assets/app-icon-android-legacy.png',
Expand Down
Loading

0 comments on commit 260d06a

Please sign in to comment.