Skip to content

Commit d47c77c

Browse files
tobiasKaminskyAndyScherzinger
authored andcommitted
Add support for QR codes & deep links
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 24cff7d commit d47c77c

File tree

14 files changed

+1283
-75
lines changed

14 files changed

+1283
-75
lines changed

build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ dependencies {
234234
implementation 'com.afollestad:sectioned-recyclerview:0.5.0'
235235
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
236236
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
237+
implementation 'com.github.tobiaskaminsky:qrcodescanner:0.1.2.2' // 'com.github.blikoon:QRCodeScanner:0.1.2'
237238

238239
implementation 'org.parceler:parceler-api:1.1.12'
239240
annotationProcessor 'org.parceler:parceler:1.1.12'

drawable_resources/qrcode.svg

+247
Loading

src/debug/AndroidManifest.xml

-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@
1414

1515
<application
1616
android:testOnly="false"
17-
android:allowBackup="false"
1817
tools:ignore="GoogleAppIndexingWarning"/>
1918
</manifest>

src/main/AndroidManifest.xml

+16-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<!-- WRITE_EXTERNAL_STORAGE may be enabled or disabled by the user after installation in
5353
API >= 23; the app needs to handle this -->
5454
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
55+
<uses-permission android:name="android.permission.CAMERA" />
5556

5657
<!-- Next permissions are always approved in installation time, the apps needs to do nothing special in runtime -->
5758
<uses-permission android:name="android.permission.INTERNET" />
@@ -70,6 +71,7 @@
7071
must request the FOREGROUND_SERVICE permission -->
7172
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
7273

74+
<uses-sdk tools:overrideLibrary="com.blikoon.qrcodescanner" />
7375

7476
<application
7577
android:name=".MainApp"
@@ -274,11 +276,24 @@
274276

275277
<category android:name="android.intent.category.DEFAULT" />
276278
</intent-filter>
279+
</activity>
280+
281+
<activity
282+
android:name=".authentication.DeepLinkLoginActivity"
283+
android:configChanges="orientation|screenSize|keyboardHidden"
284+
android:exported="true"
285+
android:launchMode="singleTask"
286+
android:clearTaskOnLaunch="true"
287+
android:theme="@style/Theme.ownCloud.noActionBar.Login">
277288
<intent-filter>
278289
<action android:name="android.intent.action.VIEW" />
290+
279291
<category android:name="android.intent.category.DEFAULT" />
280292
<category android:name="android.intent.category.BROWSABLE" />
281-
<data android:scheme="@string/login_data_own_scheme" android:host="login"/>
293+
294+
<data
295+
android:host="login"
296+
android:scheme="@string/login_data_own_scheme" />
282297
</intent-filter>
283298
</activity>
284299

0 commit comments

Comments
 (0)