Skip to content

Commit 2a31a99

Browse files
committed
misc
1 parent cf4c818 commit 2a31a99

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ props.each { key, val ->
2626

2727
def versionMajor = 2
2828
def versionMinor = 0
29-
def versionPatch = 7
29+
def versionPatch = 8
3030
def versionBuild = 10
3131

3232
android {
@@ -62,7 +62,7 @@ android {
6262

6363
buildTypes {
6464
release {
65-
minifyEnabled false
65+
minifyEnabled true
6666
shrinkResources true
6767
}
6868
debug {

app/proguard-rules.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
5151
-keepattributes InnerClasses
5252
-keepattributes InnerClasses,EnclosingMethod
5353

54+
-keep class com.crashlytics.** { *; }
55+
-keep class com.crashlytics.android.**
56+
-keepattributes SourceFile,LineNumberTable
57+
58+
-keep public class * extends java.lang.Exception
59+
5460
-dontwarn com.google.**
5561
-dontwarn com.android.**
5662
-dontwarn antlr.debug.**

app/src/main/java/com/njlabs/showjava/ui/PurchaseActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public void onProductPurchased(String productId, TransactionDetails transactionD
7474
public void onBillingError(int i, Throwable throwable) {
7575
progressBar.setVisibility(View.GONE);
7676
mainLayout.setVisibility(View.VISIBLE);
77-
Toast.makeText(this,"An error occurred while processing your payment. Please try again",Toast.LENGTH_SHORT).show();
7877

7978
switch (i) {
8079
case Constants.BILLING_RESPONSE_RESULT_USER_CANCELED:
@@ -83,6 +82,8 @@ public void onBillingError(int i, Throwable throwable) {
8382
case Constants.BILLING_RESPONSE_RESULT_ERROR:
8483
Toast.makeText(this,"An error occurred while processing your payment. Please try again",Toast.LENGTH_SHORT).show();
8584
break;
85+
default:
86+
Toast.makeText(this,"An error occurred while processing your request",Toast.LENGTH_SHORT).show();
8687
}
8788
}
8889

app/src/main/res/layout/activity_purchase.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<android.support.v7.widget.AppCompatButton
6262
android:layout_width="wrap_content"
6363
android:layout_height="wrap_content"
64-
android:text="Buy Now via Google"
64+
android:text="Buy Now via Google Play"
6565
android:layout_marginTop="12dp"
6666
android:onClick="initiateBuy"
6767
android:layout_gravity="center_horizontal"/>

0 commit comments

Comments
 (0)