Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
remove unnecessary permissions from docs and sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Brateman committed Oct 13, 2014
1 parent 5b2f7f0 commit 497246c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,13 @@ A manual entry fallback mode is provided for devices that do not meet these requ
2. Also in your `<manifest>` element, make sure the following permissions and features are present:

```xml
<!-- Permission to access network state - required -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!-- Permission to access internet - required -->
<uses-permission android:name="android.permission.INTERNET" />

<!-- Permission to use camera - required -->
<!-- Permission to use camera - required -->
<uses-permission android:name="android.permission.CAMERA" />

<!-- Permission to vibrate - recommended, allows vibration feedback on scan -->
<!-- Permission to vibrate - recommended, allows vibration feedback on scan -->
<uses-permission android:name="android.permission.VIBRATE" />

<!-- Camera features - recommended -->
<!-- Camera features - recommended -->
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />
Expand Down Expand Up @@ -104,9 +98,6 @@ First, we'll assume that you're going to launch the scanner from a button, and t
public void onScanPress(View v) {
Intent scanIntent = new Intent(this, CardIOActivity.class);

// required for authentication with card.io
scanIntent.putExtra(CardIOActivity.EXTRA_APP_TOKEN, MY_CARDIO_APP_TOKEN);

// customize these values to suit your needs.
scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, true); // default: true
scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_CVV, false); // default: false
Expand Down
2 changes: 0 additions & 2 deletions SampleApp/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />

<uses-feature android:name="android.hardware.camera" android:required="false" />
Expand Down
3 changes: 1 addition & 2 deletions SampleApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Android credit card scanning example for card.io
To give it a try:

1. Clone this repo.
2. Go to https://card.io/accounts/register, sign up for a developer account and create a new app.
3. In MyScanActivity.java, set the value of MY_CARDIO_APP_TOKEN to one created at https://card.io/apps/new/
2. Integrate with your app.

That's it!!

Expand Down
6 changes: 0 additions & 6 deletions SampleApp/src/org/my/scanExample/MyScanActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

public class MyScanActivity extends Activity
{
// You MUST register with card.io to get an app token. Go to https://card.io/apps/new/
private static final String MY_CARDIO_APP_TOKEN = "MY APP TOKEN HERE";

final String TAG = getClass().getName();

private Button scanButton;
Expand Down Expand Up @@ -53,9 +50,6 @@ public void onScanPress(View v) {

Intent scanIntent = new Intent(this, CardIOActivity.class);

// required for authentication with card.io
scanIntent.putExtra(CardIOActivity.EXTRA_APP_TOKEN, MY_CARDIO_APP_TOKEN);

// customize these values to suit your needs.
scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, true); // default: true
scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_CVV, false); // default: false
Expand Down

0 comments on commit 497246c

Please sign in to comment.