Skip to content

Commit

Permalink
keys stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dnldsht committed Aug 10, 2016
1 parent a61aae9 commit 495583b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import android.view.View;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;

import org.horaapps.leafpic.Views.ThemedActivity;
import org.horaapps.leafpic.util.CustomTabService;
Expand Down Expand Up @@ -45,9 +44,8 @@ protected void onPostCreate(Bundle savedInstanceState) {
setNavBarColor();
cts = new CustomTabService(DonateActivity.this, getPrimaryColor());
scr = (ScrollView)findViewById(org.horaapps.leafpic.R.id.donateAct_scrollView);
String base64EncodedPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsgBOXMloQet++IY1ims4/L88vgXHR+Ae0tf5QbNKyPyNRCA7EJ67OslkDBMQzHbu13Vds3mYcQI7hVKTvK8nfUhT5hWCtHJSYTW05FfYkL8usnTCPF606w7DHpsX5+58Pz/0MnOiZSiQ/6P5qfGAIytFriXIPDjc40gi14YWuqmRIeKKHjOM6inq8UEhWr3ngYD0rnbuUYMiRZEZUv+CErGk/tYAMO7wWgRZuM8fq6sBeRO9ZXam1EMDqAzhvM9fXt0DDv6byjybe1FSUUGkbd6Jcs0gGj/uzd40czqoE6AE8Oqjb4TAsDwQDula7xkUs5imdIHMMIwUDEfabCQ17wIDAQAB";

mHelper = new IabHelper(this, base64EncodedPublicKey);
mHelper = new IabHelper(this, SecretConstants.PLAY_STORE_KEY);
mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {
public void onIabSetupFinished(IabResult result) {
if (!result.isSuccess()) {
Expand Down
12 changes: 0 additions & 12 deletions app/src/main/java/org/horaapps/leafpic/SecretConstants.java

This file was deleted.

15 changes: 15 additions & 0 deletions app/src/main/java/org/horaapps/leafpic/SecretConstantsExample.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.horaapps.leafpic;

/**
* Created by dnld on 31/07/16.
*/

public class SecretConstantsExample {

//NOTE: if you want to build this app rename this file as SecretConstants and get your keys.

//you can get a free token at https://www.mapbox.com
public static String MAP_BOX_TOKEN = "pk.################################################";
//needed for iap
public static String PLAY_STORE_KEY = "########################################################################";
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import com.bumptech.glide.Glide;
import com.drew.lang.GeoLocation;
import org.horaapps.leafpic.Data.Media;
import org.horaapps.leafpic.SecretConstants;
import org.horaapps.leafpic.Activities.SettingsActivity;
import org.horaapps.leafpic.Views.ThemedActivity;

Expand Down

0 comments on commit 495583b

Please sign in to comment.