This repository was archived by the owner on Jun 5, 2023. It is now read-only.
File tree 9 files changed +23
-159
lines changed
src/main/java/com/example/glass/qrcodescannersample
9 files changed +23
-159
lines changed Original file line number Diff line number Diff line change 4
4
.idea
5
5
.project
6
6
.settings
7
+ .classpath
7
8
.DS_Store
8
9
/bin
9
10
/build
Original file line number Diff line number Diff line change 4
4
.idea
5
5
.project
6
6
.settings
7
+ .classpath
7
8
.DS_Store
8
9
/bin
9
10
/main /bin
10
11
/build
12
+ /main /build
11
13
/captures
12
14
/out
13
15
.externalNativeBuild
Original file line number Diff line number Diff line change 17
17
apply plugin : ' com.android.application'
18
18
19
19
android {
20
- compileSdkVersion 29
20
+ compileSdkVersion 28
21
21
defaultConfig {
22
22
applicationId " com.example.glass.glassqrcodescanner"
23
23
minSdkVersion 27
24
- targetSdkVersion 29
24
+ targetSdkVersion 28
25
25
versionCode 1
26
26
versionName " 1.0"
27
27
}
@@ -37,6 +37,8 @@ android {
37
37
}
38
38
39
39
dependencies {
40
+ implementation ' com.example.glass.ui:gesture-lib-sample:0.1.0-SNAPSHOT'
41
+
40
42
implementation ' androidx.appcompat:appcompat:1.1.0'
41
43
implementation ' androidx.camera:camera-core:1.0.0-alpha06'
42
44
implementation ' androidx.camera:camera-camera2:1.0.0-alpha06'
Original file line number Diff line number Diff line change 21
21
import android .view .View ;
22
22
import androidx .annotation .Nullable ;
23
23
import androidx .fragment .app .FragmentActivity ;
24
- import com .example .glass .qrcodescannersample .GlassGestureDetector .OnGestureListener ;
24
+
25
+ import com .example .glass .ui .GlassGestureDetector ;
26
+ import com .example .glass .ui .GlassGestureDetector .OnGestureListener ;
25
27
26
28
/**
27
29
* Base Activity class used to hide the system UI and capture gestures.
Original file line number Diff line number Diff line change 27
27
import androidx .annotation .NonNull ;
28
28
import androidx .camera .core .CameraX ;
29
29
import androidx .core .content .ContextCompat ;
30
- import com . example . glass . qrcodescannersample . GlassGestureDetector . Gesture ;
30
+
31
31
import com .example .glass .qrcodescannersample .QRCodeImageAnalysis .QrCodeAnalysisCallback ;
32
+ import com .example .glass .ui .GlassGestureDetector .Gesture ;
33
+
32
34
import java .util .concurrent .ExecutorService ;
33
35
import java .util .concurrent .Executors ;
34
36
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
import android .view .View ;
23
23
import android .widget .TextView ;
24
24
import androidx .annotation .Nullable ;
25
- import com .example .glass .qrcodescannersample .GlassGestureDetector .Gesture ;
25
+
26
+ import com .example .glass .ui .GlassGestureDetector .Gesture ;
26
27
27
28
/**
28
29
* This activity scans a QR code and shows the result.
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- include ' :app'
17
+ include ' :app'
18
+
19
+ includeBuild(' ../GestureLibrarySample' ) {
20
+ dependencySubstitution {
21
+ substitute module(' com.example.glass.ui:gesture-lib-sample' ) with project(' :main' )
22
+ }
23
+ }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Then use [Android Studio](https://developer.android.com/studio) to build & run t
16
16
17
17
* [ Card Sample] ( CardSample ) : A simple Glass application showcasing typical layouts and UI patterns.
18
18
* [ Camera2 Sample] ( Camera2Sample ) : Take photos and videos using the [ Camera2 API] ( https://developer.android.com/guide/topics/media/camera ) .
19
+ * [ QR Code Sample] ( QRCodeScannerSample ) : Scan QR codes with the camera.
19
20
* [ Gesture Detector] ( endpoints-frameworks ) : Respond to gesture events on the touchpad.
20
21
21
22
## Contributing
You can’t perform that action at this time.
0 commit comments