Skip to content

Commit 770d0d2

Browse files
committed
Rebase to develop, update changelog
1 parent 5f118df commit 770d0d2

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

CHANGELOG.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@ The changelog for `Superwall`. Also see the [releases](https://github.com/superw
44

55
## 1.2.0
66

7+
### Enhancements
8+
- Adds DSL methods for configuring the SDK. You can now use a configuration block:
9+
```kotlin
10+
fun Application.configureSuperwall(
11+
apiKey: String,
12+
configure: SuperwallBuilder.() -> Unit,
13+
)
14+
```
15+
16+
This allows you to configure the SDK in a more idiomatic way:
17+
```kotlin
18+
configureSuperwall(CONSTANT_API_KEY){
19+
options {
20+
logging {
21+
level = LogLevel.debug
22+
}
23+
paywalls {
24+
shouldPreload = false
25+
}
26+
}
27+
}
28+
```
29+
730
### Deprecations
831

932
This release includes multiple deprecations that will be removed in upcoming versions.
@@ -38,29 +61,6 @@ path is provided. The notable ones in the public API are as follows:
3861

3962
## 1.1.9
4063

41-
### Enhancements
42-
- Adds DSL methods for configuring the SDK. You can now use a configuration block:
43-
```kotlin
44-
fun Application.configureSuperwall(
45-
apiKey: String,
46-
configure: SuperwallBuilder.() -> Unit,
47-
)
48-
```
49-
50-
This allows you to configure the SDK in a more idiomatic way:
51-
```kotlin
52-
configureSuperwall(CONSTANT_API_KEY){
53-
options {
54-
logging {
55-
level = LogLevel.debug
56-
}
57-
paywalls {
58-
shouldPreload = false
59-
}
60-
}
61-
}
62-
```
63-
6464
### Deprecations
6565

6666
- Deprecated configuration method `Superwall.configure(applicationContext: Context, ...)` in favor of `Superwall.configure(applicationContext: Application, ...)` to enforce type safety. The rest of the method signature remains the same.

0 commit comments

Comments
 (0)