Skip to content

Commit

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

feat(components/tool/app): Create specific methods to determine each …
  • Loading branch information
oegea authored May 6, 2024
2 parents 643f14a + 83ad2b1 commit 3d3550c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions components/tool/app/src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import {Capacitor, CapacitorCookies, CapacitorHttp} from '@capacitor/core'
export const getApp = () => App
export const getHttp = () => CapacitorHttp
export const getPlatform = () => Capacitor.getPlatform()
export const isIos = () => Capacitor.getPlatform() === 'ios'
export const isAndroid = () => Capacitor.getPlatform() === 'android'
export const isWeb = () => Capacitor.getPlatform() === 'web'
export const isNative = () => Capacitor.isNativePlatform()
export const setCookie = async props => CapacitorCookies.setCookie(props)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@s-ui/js-compiler": "1",
"@s-ui/lint": "4",
"@s-ui/precommit": "3",
"@s-ui/studio": "11",
"@s-ui/studio": "11.40.0",
"@wojtekmaj/enzyme-adapter-react-17": "0.4.1",
"enzyme": "3.11.0",
"jest": "26.6.3",
Expand Down Expand Up @@ -87,4 +87,4 @@
"stylelint": {
"extends": "./node_modules/@s-ui/lint/stylelint.config.js"
}
}
}

0 comments on commit 3d3550c

Please sign in to comment.