Skip to content

Commit

Permalink
build: fix some project issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rl3x committed Jul 16, 2024
1 parent f2645c7 commit 119c000
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[*.{kt,kts}]
disabled_rules=no-wildcard-imports,import-ordering,indent
indent_size=4 #Setting -> Editor -> Kotlin -> Tabs and Indents
ij_kotlin_allow_trailing_comma_on_call_site = false
ij_kotlin_allow_trailing_comma = false
2 changes: 0 additions & 2 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions billing/src/main/java/de/charlex/billing/BillingHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package de.charlex.billing
import android.app.Activity
import android.content.Context
import android.util.Log
import androidx.annotation.Nullable
import com.android.billingclient.api.AcknowledgePurchaseParams
import com.android.billingclient.api.BillingClient
import com.android.billingclient.api.BillingClient.ProductType
Expand All @@ -26,9 +25,7 @@ import com.android.billingclient.api.consumePurchase
import com.android.billingclient.api.queryProductDetails
import com.android.billingclient.api.queryPurchaseHistory
import com.android.billingclient.api.queryPurchasesAsync
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext

/**
Expand Down Expand Up @@ -149,8 +146,8 @@ class BillingHelper(
Log.d("BillingHelper", "queryPurchases on billingClient")
billingClient.queryPurchasesAsync(
QueryPurchasesParams.newBuilder()
.setProductType(productType)
.build()
.setProductType(productType)
.build()
)
} else {
null
Expand Down Expand Up @@ -310,5 +307,4 @@ class BillingHelper(
// return@withContext null
// }
// }

}
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
android.disableAutomaticComponentCreation=true

0 comments on commit 119c000

Please sign in to comment.