Commit a5a97ba 1 parent 51b7955 commit a5a97ba Copy full SHA for a5a97ba
File tree 3 files changed +6
-28
lines changed
src/main/kotlin/com/revenuecat/purchases/common
3 files changed +6
-28
lines changed Original file line number Diff line number Diff line change @@ -129,12 +129,6 @@ commands:
129
129
- store_test_results :
130
130
path : ~/gsutil/
131
131
132
- enable-paywalls-v2 :
133
- steps :
134
- - run :
135
- name : Enable the Paywall Components build flag
136
- command : echo 'revenuecat.flag.paywallComponents=true' >> local.properties
137
-
138
132
jobs :
139
133
140
134
assemble-magic-weather-compose-sample-app :
@@ -184,7 +178,6 @@ jobs:
184
178
- run :
185
179
name : Verify purchases-ui target SDK compatibility (currently 34)
186
180
command : ./gradlew :test-apps:testpurchasesuiandroidcompatibility:assembleDebug
187
- - enable-paywalls-v2
188
181
- run :
189
182
name : Run Tests
190
183
command : ./gradlew lint test
@@ -372,7 +365,6 @@ jobs:
372
365
- android/accept-licenses
373
366
- android/restore-gradle-cache
374
367
- android/restore-build-cache
375
- - enable-paywalls-v2
376
368
- run :
377
369
name : Prepare Keystore
378
370
working_directory : examples/paywall-tester
Original file line number Diff line number Diff line change @@ -37,15 +37,6 @@ android {
37
37
resources. excludes. add(" META-INF/LICENSE.md" )
38
38
resources. excludes. add(" META-INF/LICENSE-notice.md" )
39
39
}
40
-
41
- Properties properties = new Properties ()
42
- def localProperties = project. rootProject. file(' local.properties' )
43
- if (localProperties. exists()) properties. load(localProperties. newDataInputStream())
44
- buildConfigField(
45
- " boolean" ,
46
- " FLAG_PAYWALL_COMPONENTS" ,
47
- properties. getOrDefault(" revenuecat.flag.paywallComponents" , " false" )
48
- )
49
40
}
50
41
51
42
testOptions {
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import com.revenuecat.purchases.Package
8
8
import com.revenuecat.purchases.PackageType
9
9
import com.revenuecat.purchases.PresentedOfferingContext
10
10
import com.revenuecat.purchases.UiConfig
11
- import com.revenuecat.purchases.api.BuildConfig
12
11
import com.revenuecat.purchases.models.StoreProduct
13
12
import com.revenuecat.purchases.paywalls.PaywallData
14
13
import com.revenuecat.purchases.paywalls.components.common.PaywallComponentsData
@@ -140,17 +139,13 @@ internal abstract class OfferingParser {
140
139
141
140
@Suppress(" TooGenericExceptionCaught" )
142
141
val paywallComponentsData: PaywallComponentsData ? =
143
- if (BuildConfig .FLAG_PAYWALL_COMPONENTS ) {
144
- offeringJson.optJSONObject(" paywall_components" )?.let {
145
- try {
146
- json.decodeFromString<PaywallComponentsData >(it.toString())
147
- } catch (e: Throwable ) {
148
- errorLog(" Error deserializing paywall components data" , e)
149
- null
150
- }
142
+ offeringJson.optJSONObject(" paywall_components" )?.let {
143
+ try {
144
+ json.decodeFromString<PaywallComponentsData >(it.toString())
145
+ } catch (e: Throwable ) {
146
+ errorLog(" Error deserializing paywall components data" , e)
147
+ null
151
148
}
152
- } else {
153
- null
154
149
}
155
150
156
151
val paywallComponents = if (paywallComponentsData != null && uiConfig != null ) {
You can’t perform that action at this time.
0 commit comments