Initial import of KITCard Reader 0.9.

This is the source code of the initial release on Google's Play Store.

Signed-off-by: Philipp Kern <phil@philkern.de>
Add GPLv2+ license headers to the Java files.

Signed-off-by: Philipp Kern <phil@philkern.de>
Display balance and last transaction locale-aware.

Currently this app only supports two locales: English and German. Both
have different rules on how to format currency values. In order to not
surprise en_DE users, the UK locale is used for printing negative values
in English.

Signed-off-by: Philipp Kern <pkern@debian.org>
Prefix last transaction with + if positive. Add spacing.

Handle the prefixing explicitly and add a space between the
operation (+/-) and its value.

Signed-off-by: Philipp Kern <pkern@debian.org>
Implement detection of old-style cards.

Old-style cards have two sectors marked with AID 3803. Detect this case and
display a toast telling the user to reencode his card.

Signed-off-by: Philipp Kern <pkern@debian.org>
Bump version to 0.9.1 (9).

Signed-off-by: Philipp Kern <pkern@debian.org>
Implement an instruction screen invoked from the launcher.

Signed-off-by: Philipp Kern <pkern@debian.org>
Rename ScanActivity's landscape layout too.

Signed-off-by: Philipp Kern <pkern@debian.org>
Rename LauncherActivity to MainActivity.

Like this the old intent/activity name is still around, in case people have
created shortcuts to it.

Signed-off-by: Philipp Kern <pkern@debian.org>
Bump version to 1.0 (10).

Signed-off-by: Philipp Kern <pkern@debian.org>
CardType: rename toString to toTranslatedString

Signed-off-by: Philipp Kern <pkern@debian.org>
Wallet: use hexadecimal constants for FCC/AC block application IDs

Signed-off-by: Philipp Kern <pkern@debian.org>
AndroidManifest: depend on com.nxp.mifare

As this application reads a MIFARE Classic tag, we need hardware support
for this. Devices containing a MIFARE-capable NFC controller are
required to set the com.nxp.mifare feature flag.

Signed-off-by: Philipp Kern <pkern@debian.org>
Bump version to 1.0.1 (11).

Signed-off-by: Philipp Kern <pkern@debian.org>
Wallet: fix card type parsing

The card type actually consists out of two bytes in big endian.
The XOR key is 0x3d3f. This is relevant because the employee type
actually exceeds one byte with 400 denoting an employee of the
university part of KIT and 403 an employee of the large-scale
research part (to allow for different billing).

200 is a regular guest, add it as such.

Signed-off-by: Philipp Kern <phil@philkern.de>
Bump version to 1.0.2 (13).

Version code 12 was used for a debug build.

Signed-off-by: Philipp Kern <phil@philkern.de>
THANKS: credit Michael Gehle

Signed-off-by: Philipp Kern <phil@philkern.de>
LICENSE: add GPLv2 to the repository
Display card issuer.

The card issuer can be determined from the library number by comparing
the prefix with a list of known values ("Hochschulschlüssel" used for
federal and state statistics, except for DHBW). Guest cards do not
have a library number, hence the issuer is "Studentenwerk Karlsruhe".

Signed-off-by: Philipp Kern <phil@philkern.de>