Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
floki1250 committed Oct 7, 2024
1 parent 68d877a commit edcc381
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 52 deletions.
11 changes: 11 additions & 0 deletions components/NfcTest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@
<div class="grid grid-cols-2 gap-4">
<UButton @click="shareMessage" icon="i-solar-share-bold-duotone" variant="soft">Share Message</UButton>
<UButton @click="openSettings" icon="i-solar-settings-bold-duotone" variant="soft">Settings</UButton>
<h1>Status: {{ status }}</h1>
</div>
</template>

<script setup>
import { ref } from 'vue';
const cordova = window.cordova
const status = ref("")
if (!cordova) {
status.value = 'cordova not available'
console.log('cordova not available')
} else {
status.value = 'cordova available'
console.log('cordova available')
}
document.addEventListener('deviceready', function () {
var permissions = cordova.plugins.permissions;
Expand Down
175 changes: 124 additions & 51 deletions mobile/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "Apache-2.0",
"devDependencies": {
"community-cordova-plugin-nfc": "^1.4.0",
"cordova-android": "^13.0.0",
"cordova-android": "^11.0.0",
"cordova-browser": "^7.0.0",
"cordova-plugin-android-permissions": "^1.1.5",
"cordova-plugin-device": "^3.0.0",
Expand Down

0 comments on commit edcc381

Please sign in to comment.