Skip to content

Commit

Permalink
Merge pull request #653 from SUI-Components/feat/sui-app-minor-ajustm…
Browse files Browse the repository at this point in the history
…ents

feat(components/tool/app): Add isNative method
  • Loading branch information
oegea committed Apr 23, 2024
2 parents e079e9a + 103f1bf commit ce3e1b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/tool/app/bin/commands/addBiometricConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const addAndroidBiometricConfig = async () => {
})

// Add uses-feature
manifest.manifest.application[0]['uses-feature'] = {
manifest.manifest['uses-feature'] = {
$: {
'android:name': 'android.hardware.fingerprint',
'android:required': 'false'
Expand Down
3 changes: 3 additions & 0 deletions components/tool/app/src/core.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {Capacitor} from '@capacitor/core'

export const isNative = () => Capacitor.isNativePlatform()
3 changes: 2 additions & 1 deletion components/tool/app/src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as biometric from './biometric.js'
import * as core from './core.js'
import * as localNotifications from './localNotifications.js'

export default function SuiApp() {
throw new Error('sui-app is a set of tools and is not intended to be renderized as a React component')
}

export {biometric, localNotifications}
export {biometric, core, localNotifications}

0 comments on commit ce3e1b9

Please sign in to comment.