Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Jul 29, 2024
1 parent 4f66109 commit b015c2d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 27 deletions.
4 changes: 0 additions & 4 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,4 @@
<uses-permission android:name="android.permission.INTERNET" />
<!-- To get access to the NFC hardware. -->
<uses-permission android:name="android.permission.NFC" />
<!-- The minimum SDK version that your application can support. -->
<uses-sdk android:minSdkVersion="10"/>
<!-- (Optional) This will ensure that your app appears in Google Play only for devices with NFC hardware. -->
<uses-feature android:name="android.hardware.nfc" android:required="true" />
</manifest>
42 changes: 21 additions & 21 deletions ios/App/App/capacitor.config.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"appId": "de.dhbw.vs.standortapp",
"appName": "DHBW VS",
"bundledWebRuntime": false,
"webDir": "www",
"npmClient": "npm",
"server": {
"iosScheme": "ionic"
},
"cordova": {
"preferences": {
"android-minSdkVersion": "19"
}
},
"plugins": {
"SplashScreen": {
"showSpinner": false,
"splashFullScreen": true,
"launchAutoHide": false,
"androidScaleType": "CENTER_CROP"
}
}
"appId": "de.dhbw.vs.standortapp",
"appName": "DHBW VS",
"bundledWebRuntime": false,
"webDir": "www",
"npmClient": "npm",
"server": {
"iosScheme": "ionic"
},
"cordova": {
"preferences": {
"android-minSdkVersion": "19"
}
},
"plugins": {
"SplashScreen": {
"showSpinner": false,
"splashFullScreen": true,
"launchAutoHide": false,
"androidScaleType": "CENTER_CROP"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ export class CanteenCardBalanceModalComponent {
trimmedBytes.pop();
trimmedBytes.reverse();
const hex = this.nfcHelperService.convertBytesToHex(trimmedBytes);
const balance = this.nfcHelperService.convertHexToNumber(hex);
console.log({ bytes, trimmedBytes, hex, balance });
const balance = this.nfcHelperService.convertHexToNumber(hex) / 1000;
return balance;
}

Expand Down

0 comments on commit b015c2d

Please sign in to comment.