Skip to content

Commit

Permalink
1.6.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Korney committed Aug 1, 2024
1 parent 26d192f commit 6e7e21b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 83 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.6.19] - 2024-08-01

### Fixed

- Fix build ios.

## [1.6.18] - 2024-07-31

### Added
Expand Down Expand Up @@ -110,6 +116,7 @@
- Api `Affise.android.getReferrer` to `Affise.getReferrer`
- Api `Affise.android.getReferrerValue` to `Affise.getReferrerValue`

[1.6.19]: https://github.com/affise/flutter-sdk/compare/1.6.18...1.6.19
[1.6.18]: https://github.com/affise/flutter-sdk/compare/1.6.17...1.6.18
[1.6.17]: https://github.com/affise/flutter-sdk/compare/1.6.16...1.6.17
[1.6.16]: https://github.com/affise/flutter-sdk/compare/1.6.15...1.6.16
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Package | Version |
|--------------------------|:--------------------------------------------------------:|
| `affise_attribution_lib` | [`1.6.18`](https://github.com/affise/sdk-react/releases) |
| `affise_attribution_lib` | [`1.6.19`](https://github.com/affise/sdk-react/releases) |

- [Affise Attribution Flutter Library](#affise-attribution-flutter-library)
- [Description](#description)
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.affise.attribution.affise_attribution_lib'
version '1.6.18'
version '1.6.19'

buildscript {
ext.kotlin_version = '1.7.10'
Expand Down
48 changes: 24 additions & 24 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,31 @@ packages:
path: ".."
relative: true
source: path
version: "1.6.18"
version: "1.6.19"
async:
dependency: transitive
description:
name: async
sha256: "271b8899fc99f9df4f4ed419fa14e2fff392c7b2c162fbb87b222e2e963ddc73"
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
url: "https://pub.dev"
source: hosted
version: "2.9.0"
version: "2.11.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
sha256: "5bbf32bc9e518d41ec49718e2931cd4527292c9b0c6d2dffcf7fe6b9a8a8cf72"
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
version: "2.1.1"
characters:
dependency: transitive
description:
name: characters
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
url: "https://pub.dev"
source: hosted
version: "1.2.1"
version: "1.3.0"
clock:
dependency: transitive
description:
Expand All @@ -44,10 +44,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: ef7e3a5529178ce8f37a9d0b11cbbc8b1e025940f9cf9f76c42da6796301219d
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
url: "https://pub.dev"
source: hosted
version: "1.16.0"
version: "1.17.1"
cupertino_icons:
dependency: "direct main"
description:
Expand Down Expand Up @@ -94,10 +94,10 @@ packages:
dependency: transitive
description:
name: js
sha256: a5e201311cb08bf3912ebbe9a2be096e182d703f881136ec1e81a2338a9e120d
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev"
source: hosted
version: "0.6.4"
version: "0.6.7"
lints:
dependency: transitive
description:
Expand All @@ -110,10 +110,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: "80c2989398773fa06e2457e9ff08580f24e9858b28462a722241cb53e5613478"
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
url: "https://pub.dev"
source: hosted
version: "0.12.12"
version: "0.12.15"
material_color_utilities:
dependency: transitive
description:
Expand All @@ -126,18 +126,18 @@ packages:
dependency: transitive
description:
name: meta
sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
url: "https://pub.dev"
source: hosted
version: "1.8.0"
version: "1.9.1"
path:
dependency: transitive
description:
name: path
sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
url: "https://pub.dev"
source: hosted
version: "1.8.2"
version: "1.8.3"
plugin_platform_interface:
dependency: transitive
description:
Expand All @@ -163,10 +163,10 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256: f8d9f247e2f9f90e32d1495ff32dac7e4ae34ffa7194c5ff8fcc0fd0e52df774
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
url: "https://pub.dev"
source: hosted
version: "1.10.0"
version: "1.11.0"
stream_channel:
dependency: transitive
description:
Expand All @@ -179,10 +179,10 @@ packages:
dependency: transitive
description:
name: string_scanner
sha256: "862015c5db1f3f3c4ea3b94dc2490363a84262994b88902315ed74be1155612f"
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
url: "https://pub.dev"
source: hosted
version: "1.1.1"
version: "1.2.0"
term_glyph:
dependency: transitive
description:
Expand All @@ -195,10 +195,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: ceeddf59d613e862e77f4b506cfc2945ac9637ce0b4c00f4f4c1ac639f3e9731
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
url: "https://pub.dev"
source: hosted
version: "0.4.14"
version: "0.5.1"
vector_math:
dependency: transitive
description:
Expand All @@ -208,5 +208,5 @@ packages:
source: hosted
version: "2.1.4"
sdks:
dart: ">=2.18.0 <4.0.0"
dart: ">=3.0.0-0 <4.0.0"
flutter: ">=2.5.0"
56 changes: 0 additions & 56 deletions ios/Classes/AffiseAttributionLibPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,10 @@ public class AffiseAttributionLibPlugin: NSObject, FlutterPlugin, FlutterStreamH
apiWrapper?.handleDeeplink(url)
initialLink = url

// TODO 1.6.34 internal utils
let value = URL(string: url!).toDeeplinkValue()
events?([
AffiseApiMethod.REGISTER_DEEPLINK_CALLBACK.method : value
])
// let value = URL(string: url!).toDeeplinkValue()
// events?([
// AffiseApiMethod.REGISTER_DEEPLINK_CALLBACK.method : [
// "deeplink": value.deeplink,
// "scheme": value.scheme as Any,
// "host": value.host as Any,
// "path": value.path as Any,
// "parameters": value.parameters
// ]
// ])
}

public func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [AnyHashable : Any] = [:]) -> Bool {
Expand Down Expand Up @@ -124,48 +113,3 @@ public class AffiseAttributionLibPlugin: NSObject, FlutterPlugin, FlutterStreamH
return nil
}
}

// TODO remove for 1.6.34
extension Optional where Wrapped == URL {

func toDeeplinkValue() -> [String:Any] {
guard let self = self else {
return [:]
}

var host: String?
var path: String?
var parameters: [String:[String]] = [:]

if #available(iOS 16.0, *) {
#if swift(>=5.7.1)
host = self.host(percentEncoded: false)
path = self.path(percentEncoded: false)
#else
host = self.host
path = self.path
#endif
} else {
host = self.host
path = self.path
}

let component = URLComponents(string: self.absoluteString)
for item in component?.queryItems ?? [] {
let value = item.value?.removingPercentEncoding
if parameters[item.name] != nil {
parameters[item.name]?.append(value ?? "")
} else {
parameters[item.name] = [value ?? ""]
}
}

return [
"deeplink": self.absoluteString,
"scheme": self.scheme as Any,
"host": host as Any,
"path": path as Any,
"parameters": parameters
]
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: affise_attribution_lib
description: Affise Attribution Flutter plugin.
version: 1.6.18
version: 1.6.19
homepage: https://affise.com/

environment:
Expand Down

0 comments on commit 6e7e21b

Please sign in to comment.