Skip to content

Commit 592d492

Browse files
committed
Adding barcode-reader sample.
This includes an open-source version of CameraSource. Change-Id: I3b25b232ed0700268b7978f6a93d711640b2dca0
1 parent 3b3d8cc commit 592d492

29 files changed

+2788
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ build/
44
*.iml
55
local.properties
66
.DS_Store
7+
captures/
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 23
5+
buildToolsVersion "23.0.1"
6+
7+
defaultConfig {
8+
applicationId "com.google.android.gms.samples.vision.barcodereader"
9+
minSdkVersion 9
10+
targetSdkVersion 23
11+
versionCode 1
12+
versionName "1.0"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
compile fileTree(dir: 'libs', include: ['*.jar'])
24+
compile 'com.android.support:support-v4:23.0.1'
25+
// Important - the CameraSource implementation in this project requires version 8.1 or higher.
26+
compile 'com.google.android.gms:play-services:8.1.0'
27+
compile 'com.android.support:design:23.0.1'
28+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /usr/local/google/home/wilkinsonclay/android/adt-bundle-linux-x86_64-20140702/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.google.android.gms.samples.vision.barcodereader"
4+
android:installLocation="auto" >
5+
6+
<uses-feature android:name="android.hardware.camera" />
7+
8+
<uses-permission android:name="android.permission.CAMERA" />
9+
10+
<application
11+
android:allowBackup="true"
12+
android:fullBackupContent="false"
13+
android:hardwareAccelerated="true"
14+
android:icon="@drawable/icon"
15+
android:label="MultiTrackerApp"
16+
android:supportsRtl = "true"
17+
android:theme="@style/Theme.AppCompat" >
18+
<meta-data
19+
android:name="com.google.android.gms.version"
20+
android:value="@integer/google_play_services_version" />
21+
<meta-data
22+
android:name="com.google.android.gms.vision.DEPENDENCIES"
23+
android:value="barcode" />
24+
25+
<activity
26+
android:name=".MainActivity"
27+
android:label="@string/title_activity_main" >
28+
<intent-filter>
29+
<action android:name="android.intent.action.MAIN" />
30+
31+
<category android:name="android.intent.category.LAUNCHER" />
32+
</intent-filter>
33+
</activity>
34+
35+
<activity android:name=".BarcodeCaptureActivity"
36+
android:label="Read Barcode"/>
37+
</application>
38+
39+
</manifest>

0 commit comments

Comments
 (0)