Skip to content

Commit

Permalink
Merge pull request #198 from superwall-me/develop
Browse files Browse the repository at this point in the history
3.5.0-rc.2
  • Loading branch information
yusuftor authored Feb 26, 2024
2 parents d296269 + 097cf3a commit c39022c
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 34 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

The changelog for `SuperwallKit`. Also see the [releases](https://github.com/superwall-me/Superwall-iOS/releases) on GitHub.

## 3.5.0-rc.2

### Fixes

- Moves resources into their own resources bundle when installing via CocoaPods.

## 3.5.0-rc.1

This is our first visionOS pre-release, we'll test this on a few devices to
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Nest22
Copyright (c) 2024 Nest22

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Sources/SuperwallKit/Misc/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ let sdkVersion = """
*/

let sdkVersion = """
3.5.0-rc.1
3.5.0-rc.2
"""
8 changes: 0 additions & 8 deletions Sources/SuperwallKit/Models/Triggers/Trigger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ import Foundation
struct Trigger: Decodable, Hashable {
var eventName: String
var rules: [TriggerRule]

init(
eventName: String,
rules: [TriggerRule]
) {
self.eventName = eventName
self.rules = rules
}
}

extension Trigger: Stubbable {
Expand Down
28 changes: 14 additions & 14 deletions Sources/SuperwallKit/Network/Device Helper/DeviceHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,21 +121,21 @@ class DeviceHelper {
}

var interfaceStyle: String {
#if os(visionOS)
#if os(visionOS)
return "Unknown"
#else
let style = UIScreen.main.traitCollection.userInterfaceStyle
switch style {
case .unspecified:
return "Unspecified"
case .light:
return "Light"
case .dark:
return "Dark"
default:
return "Unknown"
#else
let style = UIScreen.main.traitCollection.userInterfaceStyle
switch style {
case .unspecified:
return "Unspecified"
case .light:
return "Light"
case .dark:
return "Dark"
default:
return "Unknown"
}
#endif
}
#endif
}

var platformWrapper: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public class PaywallViewController: UIViewController, LoadingDelegate {
}
}

func loadingStateDidChange(from oldValue: PaywallLoadingState) {
func loadingStateDidChange(from oldValue: PaywallLoadingState) {
switch loadingState {
case .unknown:
break
Expand Down Expand Up @@ -341,9 +341,9 @@ public class PaywallViewController: UIViewController, LoadingDelegate {
self.shimmerView = nil
}
)
}
}
}
}
}
}

private func addShimmerView(onPresent: Bool = false) {
guard shimmerView == nil else {
Expand Down
14 changes: 8 additions & 6 deletions SuperwallKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pod::Spec.new do |s|
s.license = { :type => 'MIT', :text => <<-LICENSE
MIT License
Copyright (c) 2023 Superwall
Copyright (c) 2024 Superwall
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -39,10 +39,12 @@ Pod::Spec.new do |s|
s.requires_arc = true

s.source_files = "Sources/**/*.{swift}"
s.resources = [
"Sources/SuperwallKit/**/*.xcassets",
"Sources/SuperwallKit/**/*.xcdatamodeld",
"Sources/SuperwallKit/**/*.cer"
]
s.resource_bundles = {
'SuperwallKit' => [
"Sources/SuperwallKit/**/*.xcassets",
"Sources/SuperwallKit/**/*.xcdatamodeld",
"Sources/SuperwallKit/**/*.cer"
]
}

end

0 comments on commit c39022c

Please sign in to comment.