Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit b8a53c9

Browse files
authored
Merge pull request #5 from meganz/release/2.0.1
Release 2.0.1
2 parents ebad1e4 + a7cfc28 commit b8a53c9

86 files changed

Lines changed: 1043 additions & 1176 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<uses-feature android:name="android.hardware.camera" />
99

1010
<application
11+
android:name=".DocumentScannerApp"
1112
android:icon="@mipmap/ic_launcher"
1213
android:label="@string/app_name"
1314
android:roundIcon="@mipmap/ic_launcher_round"
9.58 KB
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.example.documentscanner
2+
3+
import android.app.Application
4+
import android.os.StrictMode
5+
6+
class DocumentScannerApp : Application() {
7+
8+
override fun onCreate() {
9+
if (BuildConfig.DEBUG) {
10+
enableStrictMode()
11+
}
12+
super.onCreate()
13+
}
14+
15+
private fun enableStrictMode() {
16+
StrictMode.setThreadPolicy(
17+
StrictMode.ThreadPolicy.Builder()
18+
.detectAll()
19+
.penaltyLog()
20+
.build()
21+
)
22+
StrictMode.setVmPolicy(
23+
StrictMode.VmPolicy.Builder()
24+
.detectAll()
25+
.penaltyLog()
26+
.build()
27+
)
28+
}
29+
}

app/src/main/res/drawable-v24/ic_launcher_foreground.xml

Lines changed: 0 additions & 43 deletions
This file was deleted.

app/src/main/res/drawable/ic_launcher_background.xml

Lines changed: 0 additions & 83 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="108dp"
3+
android:height="108dp"
4+
android:viewportWidth="108"
5+
android:viewportHeight="108">
6+
<group android:scaleX="0.515625"
7+
android:scaleY="0.515625"
8+
android:translateX="29.25"
9+
android:translateY="29.25">
10+
<path
11+
android:fillColor="#FFFFFF"
12+
android:pathData="m28.1,5c-4.6,1.1 -10,6.7 -11.1,11.6 -0.5,2.1 -1,7.4 -1,11.6l0,7.8l3.9,-0 3.9,-0l0.3,-7.3c0.7,-13 5.5,-16.7 21.7,-16.7l10,-0l0.4,5.6c0.6,7.4 2.8,9.6 10.2,10.2l5.6,0.4l0,3.9c0,3.9 0,3.9 4,3.9l4,-0l0,-7.8 0,-7.7l-8.3,-8.3 -8.2,-8.2 -16,0.1c-8.8,0.1 -17.5,0.5 -19.4,0.9z"/>
13+
<path
14+
android:fillColor="#FFFFFF"
15+
android:pathData="m0,48l0,4l48,-0 48,-0l0,-4 0,-4l-48,-0 -48,-0z"/>
16+
<path
17+
android:fillColor="#FFFFFF"
18+
android:pathData="m16,67.7c0.1,10.7 1.2,15 5.3,19 4.5,4.5 8.2,5.3 26.7,5.3s22.2,-0.8 26.7,-5.3c4.1,-4 5.2,-8.3 5.3,-19l0,-7.7l-32,-0 -32,-0z"/>
19+
</group>
20+
</vector>
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!--
3-
~ /**
4-
~ * Created by Ali YÜCE on 3/2/20 11:18 PM
5-
~ * https://github.com/mayuce/
6-
~ * Copyright (c) 2020 . All rights reserved.
7-
~ * Last modified 3/2/20 11:17 PM
8-
~ */
9-
-->
10-
112
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
12-
<background android:drawable="@drawable/ic_launcher_background"/>
3+
<background android:drawable="@color/ic_launcher_background"/>
134
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
145
</adaptive-icon>
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!--
3-
~ /**
4-
~ * Created by Ali YÜCE on 3/2/20 11:18 PM
5-
~ * https://github.com/mayuce/
6-
~ * Copyright (c) 2020 . All rights reserved.
7-
~ * Last modified 3/2/20 11:17 PM
8-
~ */
9-
-->
10-
112
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
12-
<background android:drawable="@drawable/ic_launcher_background"/>
3+
<background android:drawable="@color/ic_launcher_background"/>
134
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
145
</adaptive-icon>
-10 Bytes
Loading
866 Bytes
Loading

0 commit comments

Comments
 (0)