Skip to content

Commit

Permalink
fix: typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Apr 7, 2022
1 parent 63d9863 commit 8ac9df8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ extension Bundle {
@objc public func getLatest(url: URL) -> AppVersion? {
let semaphore = DispatchSemaphore(value: 0)
let latest = AppVersion()
let headers = [
let headers: HTTPHeaders = [
"cap_device_id": self.deviceID,
"cap_app_id": self.appId,
"cap_version_build": self.versionBuild,
"cap_version_name": self.getVersionName()
]
let request = AF.request(.GET, url, headers: headers)
let request = AF.request(url, headers: headers)

request.validate().responseDecodable(of: AppVersionDec.self) { response in
switch response.result {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capacitor-updater",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"license": "AGPL-3.0-only",
"description": "OTA update for capacitor apps",
"main": "dist/plugin.cjs.js",
Expand Down

0 comments on commit 8ac9df8

Please sign in to comment.