Skip to content

Commit

Permalink
Bump 1.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pluscubed committed Nov 2, 2018
1 parent 945bbfd commit 32b1c29
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
5 changes: 2 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ android {
applicationId "com.pluscubed.velociraptor"
minSdkVersion 16
targetSdkVersion 28
versionCode 44
versionName "1.6.7"
versionCode 45
versionName "1.6.8"
vectorDrawables.useSupportLibrary = true
manifestPlaceholders = [appName: "@string/app_name"]
multiDexEnabled true
Expand Down Expand Up @@ -135,7 +135,6 @@ dependencies {
implementation "com.android.support:support-annotations:$support_version"
implementation "com.android.support:cardview-v7:$support_version"
implementation "com.android.support:design:$support_version"
implementation "com.android.support:customtabs:$support_version"
implementation 'com.android.support.constraint:constraint-layout:1.1.3'

implementation "com.google.firebase:firebase-core:16.0.4"
Expand Down
5 changes: 4 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,7 @@
-dontwarn java.lang.invoke.*

#DbInspector
-dontwarn org.apache.commons.**
-dontwarn org.apache.commons.**

#Billing library
-keep class com.android.vending.billing.**
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public OsmLimitProvider(Context context, OkHttpClient client, LimitCache osmCach
int resId = context.getResources().getIdentifier("overpass_api", "string", context.getPackageName());
if (resId != 0) {
endpointUrl = context.getString(resId);
} else {
Timber.d("Private overpass_api not set");
}
OsmApiEndpoint endpoint = new OsmApiEndpoint(endpointUrl);
initializeOsmService(endpoint);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void run() {
*/
@Override
public void onPurchasesUpdated(int resultCode, List<Purchase> purchases) {
if (resultCode == BillingResponse.OK) {
if (resultCode == BillingResponse.OK && purchases != null) {
for (Purchase purchase : purchases) {
handlePurchase(purchase);
}
Expand Down Expand Up @@ -278,13 +278,17 @@ public void run() {
= billingClient.queryPurchases(SkuType.SUBS);
Log.i(TAG, "Querying purchases and subscriptions elapsed time: "
+ (System.currentTimeMillis() - time) + "ms");
Log.i(TAG, "Querying subscriptions result code: "
+ subscriptionResult.getResponseCode()
+ " res: " + subscriptionResult.getPurchasesList().size());
if (subscriptionResult.getPurchasesList() != null) {
Log.i(TAG, "Querying subscriptions result code: "
+ subscriptionResult.getResponseCode()
+ " res: " + subscriptionResult.getPurchasesList().size());
}

if (subscriptionResult.getResponseCode() == BillingResponse.OK) {
purchasesResult.getPurchasesList().addAll(
subscriptionResult.getPurchasesList());
if (subscriptionResult.getPurchasesList() != null && purchasesResult.getPurchasesList() != null) {
purchasesResult.getPurchasesList().addAll(
subscriptionResult.getPurchasesList());
}
} else {
Log.e(TAG, "Got an error response trying to query subscription purchases");
}
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/raw/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
</style>
</head>
<body>
<h4>v1.6.8 - 11/1/18</h4>
<ul>
<li>Fix crashes</li>
</ul>
<br />

<h4>v1.6.7 - 10/28/18</h4>
<ul>
<li>Fix minor bugs, update internals</li>
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ apply plugin: 'com.github.ben-manes.versions'

buildscript {
ext{
kotlin_version = '1.2.71'
kotlin_version = '1.3.0'
}

repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-beta01'
classpath 'com.android.tools.build:gradle:3.3.0-beta02'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
classpath 'com.google.gms:google-services:4.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
Expand Down

0 comments on commit 32b1c29

Please sign in to comment.