Skip to content

Commit 70eaa7f

Browse files
committed
Initial commit
1 parent 6e8e319 commit 70eaa7f

File tree

17 files changed

+1836
-21
lines changed

17 files changed

+1836
-21
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Google Wallet NFC Reader
2+
3+
Google Wallet NFC Reader sample app is a simple Android application that invokes the get smart tap data flow. The app reads the smartTapRedemptionValue property of a Google Wallet pass object stored on an Android. This includes the cryptographic operations needed to authenticate the terminal and decrypt the payload.
4+
5+
This application contains the needed configuration to retrieve the demo pass added to the user device:
6+
7+
* Private key
8+
* Key version
9+
* Collector ID
10+
11+
On the user device, open the following link to add the demo loyalty pass to the Google Wallet app:
12+
13+
[Demo pass link](https://pay.google.com/gp/v/save/eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJnb29nbGUiLCJvcmlnaW5zIjpbImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCJdLCJpc3MiOiJnb29nbGUtcGF5LWZvci1wYXNzZXMtZ3RlY2hAcGF5LXBhc3Nlcy1zbWFydC10YXAtc2FtcGxlLmlhbS5nc2VydmljZWFjY291bnQuY29tIiwiaWF0IjoxNTI5OTU2MDcwLCJ0eXAiOiJzYXZldG9hbmRyb2lkcGF5IiwicGF5bG9hZCI6eyJsb3lhbHR5T2JqZWN0cyI6W3siY2xhc3NJZCI6IjMyNjUzMjAxMTE2NDE5NTYxODMuMDYxOV9nb29nbGVEZW1vVGVzdCIsInN0YXRlIjoiYWN0aXZlIiwiaWQiOiIzMjY1MzIwMTExNjQxOTU2MTgzLjA2MTlfZ29vZ2xlRGVtb1Rlc3Qtb2JqMDEifV19fQ.MjUBdBtGyQwcE3xI-q6tVNBiApZppLMp0Op0XvB-c31Ri-JttJCzGXZvURNvKFDGXTNQQDqVBgQziuBMR_ZL0_lp7q8B5nwfSR32I0Kr220n3CezAsikaM5rKVf83UXT9fvqagnRn0QVVuS7fyLLc9nBDxRhRnkqEz2dQPgrNZ1u2AEJBPSoM6sLTeHssOWUMp7dgW6REJg7NUcczXJgLSOpAmD08G14q1qfS5T4Jb4knwPeIMnggNMjHcSBmz0z6W4DGD5Ld16nKOty4TvoDh4EevEJF7U7UQcOwIpozIXRVKs8rlqEXMObGsrk4hPM-I2p6H4DBrVcpyG8HD6Iug)

app/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ android {
1717
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1818
}
1919

20+
buildFeatures {
21+
viewBinding true
22+
}
23+
2024
buildTypes {
2125
release {
2226
minifyEnabled false
@@ -34,10 +38,11 @@ android {
3438

3539
dependencies {
3640

37-
implementation 'androidx.core:core-ktx:1.8.0'
41+
implementation 'androidx.core:core-ktx:1.10.1'
3842
implementation 'androidx.appcompat:appcompat:1.6.1'
39-
implementation 'com.google.android.material:material:1.5.0'
43+
implementation 'com.google.android.material:material:1.9.0'
4044
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
45+
implementation 'org.bouncycastle:bcpkix-jdk15on:1.70'
4146
testImplementation 'junit:junit:4.13.2'
4247
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
4348
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5+
<uses-permission android:name="android.permission.NFC" />
6+
7+
<uses-feature
8+
android:name="android.hardware.nfc.hce"
9+
android:required="true" />
10+
511
<application
612
android:allowBackup="true"
713
android:dataExtractionRules="@xml/data_extraction_rules"
@@ -10,11 +16,12 @@
1016
android:label="@string/app_name"
1117
android:roundIcon="@mipmap/ic_launcher_round"
1218
android:supportsRtl="true"
13-
android:theme="@style/Theme.GoogleWalletNFCReader"
19+
android:theme="@style/AppTheme"
1420
tools:targetApi="31">
1521
<activity
1622
android:name=".MainActivity"
17-
android:exported="true">
23+
android:exported="true"
24+
android:screenOrientation="nosensor">
1825
<intent-filter>
1926
<action android:name="android.intent.action.MAIN" />
2027

0 commit comments

Comments
 (0)