Skip to content

Commit 495583b

Browse files
committed
keys stuff
1 parent a61aae9 commit 495583b

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Diff for: app/src/main/java/org/horaapps/leafpic/Activities/DonateActivity.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import android.view.View;
1111
import android.widget.ScrollView;
1212
import android.widget.TextView;
13-
import android.widget.Toast;
1413

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

50-
mHelper = new IabHelper(this, base64EncodedPublicKey);
48+
mHelper = new IabHelper(this, SecretConstants.PLAY_STORE_KEY);
5149
mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {
5250
public void onIabSetupFinished(IabResult result) {
5351
if (!result.isSuccess()) {

Diff for: app/src/main/java/org/horaapps/leafpic/SecretConstants.java

-12
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.horaapps.leafpic;
2+
3+
/**
4+
* Created by dnld on 31/07/16.
5+
*/
6+
7+
public class SecretConstantsExample {
8+
9+
//NOTE: if you want to build this app rename this file as SecretConstants and get your keys.
10+
11+
//you can get a free token at https://www.mapbox.com
12+
public static String MAP_BOX_TOKEN = "pk.################################################";
13+
//needed for iap
14+
public static String PLAY_STORE_KEY = "########################################################################";
15+
}

Diff for: app/src/main/java/org/horaapps/leafpic/util/AlertDialogsHelper.java

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import com.bumptech.glide.Glide;
1919
import com.drew.lang.GeoLocation;
2020
import org.horaapps.leafpic.Data.Media;
21-
import org.horaapps.leafpic.SecretConstants;
2221
import org.horaapps.leafpic.Activities.SettingsActivity;
2322
import org.horaapps.leafpic.Views.ThemedActivity;
2423

0 commit comments

Comments
 (0)