Skip to content

Commit

Permalink
onboaring & qr scanning improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
diepoe committed Jan 31, 2023
1 parent 5c96792 commit fa02252
Show file tree
Hide file tree
Showing 12 changed files with 235 additions and 45 deletions.
2 changes: 2 additions & 0 deletions android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ android {
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
dependencies {
implementation project(':capacitor-community-barcode-scanner')
implementation project(':capacitor-community-sqlite')
implementation project(':capacitor-geolocation')
implementation project(':capacitor-haptics')
implementation project(':capacitor-toast')

Expand Down
20 changes: 13 additions & 7 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" package="diepoe.heggame">
<?xml version="1.0" encoding="utf-8" ?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="diepoe.heggame">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand All @@ -27,16 +29,20 @@
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
</provider>
</application>

<!-- Permissions -->

<uses-permission android:name="android.permission.INTERNET" />

<!-- camera permission for qr-code scanning-->
<uses-permission android:name="android.permission.CAMERA" />
<uses-sdk tools:overrideLibrary="com.google.zxing.client.android" />
</manifest>

<!-- geolocation permission for compass helping feature -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.location.gps" />
</manifest>
6 changes: 6 additions & 0 deletions android/capacitor.settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ project(':capacitor-android').projectDir = new File('../node_modules/.pnpm/@capa
include ':capacitor-community-barcode-scanner'
project(':capacitor-community-barcode-scanner').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/barcode-scanner/android')

include ':capacitor-community-sqlite'
project(':capacitor-community-sqlite').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/sqlite/android')

include ':capacitor-geolocation'
project(':capacitor-geolocation').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/geolocation/android')

include ':capacitor-haptics'
project(':capacitor-haptics').projectDir = new File('../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/haptics/android')

Expand Down
4 changes: 4 additions & 0 deletions ios/App/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
<key>NSLocationAlwaysUsageDescription</key>
<string>Der Standort wird zur Assistenz in der Gebäudeführung benötigt</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Der Standort wird zur Assistenz in der Gebäudeführung benötigt</string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def capacitor_pods
pod 'Capacitor', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios'
pod 'CapacitorCommunityBarcodeScanner', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/barcode-scanner'
pod 'CapacitorCommunitySqlite', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor-community/sqlite'
pod 'CapacitorGeolocation', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/geolocation'
pod 'CapacitorHaptics', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/haptics'
pod 'CapacitorToast', :path => '../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/toast'
end
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@
"type": "module",
"dependencies": {
"@capacitor-community/barcode-scanner": "^3.0.1",
"@capacitor-community/sqlite": "4.6.1-2",
"@capacitor/android": "^4.6.2",
"@capacitor/assets": "^2.0.4",
"@capacitor/cli": "^4.6.2",
"@capacitor/core": "^4.6.2",
"@capacitor/geolocation": "^4.1.0",
"@capacitor/haptics": "^4.1.0",
"@capacitor/ios": "^4.6.2",
"@capacitor/toast": "^4.1.0"
"@capacitor/toast": "^4.1.0",
"@types/node": "^18.11.18",
"sql.js": "^1.8.0"
}
}
Loading

0 comments on commit fa02252

Please sign in to comment.