-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
Clickable demo
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
language: android | ||
jdk: oraclejdk8 | ||
cache: | ||
directories: | ||
- node_modules | ||
sudo: false | ||
before_install: | ||
- mkdir "$ANDROID_HOME/licenses" || true | ||
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license" | ||
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license" | ||
android: | ||
components: | ||
# Uncomment the lines below if you want to | ||
# use the latest revision of Android SDK Tools | ||
- tools | ||
- platform-tools | ||
|
||
# The BuildTools version used by your project | ||
- build-tools-25.0.2 | ||
|
||
# The SDK version used to compile your project | ||
- android-21 | ||
- android-25 | ||
|
||
# Additional components (included from example) | ||
- extra-google-google_play_services | ||
- extra-google-m2repository | ||
- extra-android-m2repository | ||
- addon-google_apis-google-19 | ||
|
||
# Specify at least one system image, | ||
# if you need to run emulator(s) during your tests | ||
- sys-img-armeabi-v7a-android-21 | ||
licenses: | ||
- android-sdk-license-.+ | ||
- '.+' | ||
env: | ||
global: | ||
# install timeout in minutes (2 minutes by default) | ||
- ADB_INSTALL_TIMEOUT=8 | ||
|
||
# Emulator Management: Create, Start and Wait | ||
before_script: | ||
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a | ||
- emulator -avd test -no-skin -no-audio -no-window & | ||
- android-wait-for-emulator | ||
- adb shell input keyevent 82 & | ||
script: | ||
- android list target | ||
- ./gradlew connectedAndroidTest |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[![Build Status](https://travis-ci.org/digital-voting-pass/digital-voting-pass-app.svg?branch=develop)](https://travis-ci.org/digital-voting-pass/digital-voting-pass-app) | ||
|
||
# digital-voting-pass-app | ||
Voting station app to redeem the token on the blockchain using a machine readable travel document. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion "25.0.2" | ||
defaultConfig { | ||
applicationId "com.digitalvotingpass.digitalvotingpass" | ||
minSdkVersion 21 | ||
targetSdkVersion 25 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
}) | ||
compile 'com.android.support:design:25.3.1' | ||
compile 'com.android.support:design:25.3.1' | ||
compile 'com.android.support:appcompat-v7:25.3.1' | ||
compile 'com.android.support.constraint:constraint-layout:1.0.2' | ||
compile 'com.android.support:support-v4:25.3.1' | ||
compile 'com.android.support:support-v13:25.3.1' | ||
compile 'com.android.support:cardview-v7:25.3.1' | ||
compile 'com.rmtheis:tess-two:6.3.0' | ||
compile 'org.jmrtd:jmrtd:0.5.5' | ||
compile 'com.madgag.spongycastle:prov:1.54.0.0' | ||
compile 'net.sf.scuba:scuba-sc-android:0.0.9' | ||
testCompile 'junit:junit:4.12' | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /home/jonathan/Android/Sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.digitalvotingpass.digitalvotingpass"> | ||
|
||
<uses-sdk android:minSdkVersion="21" /> | ||
|
||
<uses-permission android:name="android.permission.CAMERA" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.NFC" /> | ||
|
||
<uses-feature android:name="android.hardware.camera" /> | ||
<uses-feature android:name="android.hardware.camera.autofocus" /> | ||
<uses-feature | ||
android:name="android.hardware.nfc" | ||
android:required="true" /> | ||
|
||
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.AppCompat.Light.NoActionBar"> | ||
|
||
<activity android:name=".SplashActivity" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name="com.digitalvotingpass.electionchoice.ElectionChoiceActivity" | ||
android:windowSoftInputMode="stateHidden"> | ||
<meta-data | ||
android:name="android.app.searchable" | ||
android:resource="@xml/searchable"> | ||
</meta-data> | ||
</activity> | ||
<activity | ||
android:name=".MainActivity" | ||
android:screenOrientation="portrait"> | ||
|
||
</activity> | ||
<activity | ||
android:name="com.digitalvotingpass.passportconnection.PassportConActivity" | ||
android:label="PassportConActivity" | ||
android:screenOrientation="portrait" /> | ||
<activity | ||
android:name=".ManualInputActivity" | ||
android:label="@string/title_activity_manual_input" | ||
android:screenOrientation="portrait"/> | ||
<activity android:name="com.digitalvotingpass.camera.CameraActivity" /> | ||
<activity | ||
android:name=".ResultActivity" | ||
android:label="@string/title_activity_result" | ||
android:theme="@style/Theme.AppCompat.Light.NoActionBar" /> | ||
<activity android:name="com.digitalvotingpass.transactionhistory.TransactionHistoryActivity" | ||
android:label="@string/transaction_history" | ||
android:screenOrientation="portrait"/> | ||
</application> | ||
|
||
</manifest> |