@ua/capacitor-airship 4.6.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UaCapacitorAirship.podspec +2 -2
- package/android/build.gradle +7 -6
- package/android/src/main/java/com/airship/capacitor/AirshipCapacitorVersion.kt +1 -1
- package/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt +2 -2
- package/android/src/main/java/com/airship/capacitor/CapacitorAutopilot.kt +3 -3
- package/ios/Plugin/AirshipCapacitorVersion.swift +1 -1
- package/ios/Plugin/AirshipPluginLoader.swift +0 -1
- package/package.json +2 -2
|
@@ -10,9 +10,9 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.homepage = package['repository']['url']
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
|
-
s.ios.deployment_target = '
|
|
13
|
+
s.ios.deployment_target = '16.0'
|
|
14
14
|
s.dependency 'Capacitor'
|
|
15
15
|
s.swift_version = '6'
|
|
16
|
-
s.dependency "AirshipFrameworkProxy", "
|
|
16
|
+
s.dependency "AirshipFrameworkProxy", "15.2.0"
|
|
17
17
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
18
18
|
end
|
package/android/build.gradle
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
ext {
|
|
2
|
-
airshipProxyVersion = project.hasProperty('airshipProxyVersion') ? rootProject.ext.airshipProxyVersion : '
|
|
2
|
+
airshipProxyVersion = project.hasProperty('airshipProxyVersion') ? rootProject.ext.airshipProxyVersion : '15.2.0'
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
buildscript {
|
|
7
|
-
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '
|
|
7
|
+
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
|
|
8
8
|
|
|
9
9
|
repositories {
|
|
10
10
|
google()
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
14
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
15
15
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -25,10 +25,10 @@ apply plugin: 'kotlin-android'
|
|
|
25
25
|
|
|
26
26
|
android {
|
|
27
27
|
namespace "com.airship.capacitor"
|
|
28
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
28
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
29
29
|
defaultConfig {
|
|
30
30
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
|
|
31
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
31
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
32
32
|
versionCode 1
|
|
33
33
|
versionName "1.0"
|
|
34
34
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -39,8 +39,9 @@ android {
|
|
|
39
39
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
lint {
|
|
43
43
|
abortOnError false
|
|
44
|
+
checkDependencies false
|
|
44
45
|
}
|
|
45
46
|
compileOptions {
|
|
46
47
|
sourceCompatibility JavaVersion.VERSION_21
|
|
@@ -10,7 +10,7 @@ import com.urbanairship.Autopilot
|
|
|
10
10
|
import com.urbanairship.PendingResult
|
|
11
11
|
import com.urbanairship.UALog
|
|
12
12
|
import com.urbanairship.actions.ActionResult
|
|
13
|
-
import com.urbanairship.android.framework.proxy.EventType
|
|
13
|
+
import com.urbanairship.android.framework.proxy.events.EventType
|
|
14
14
|
import com.urbanairship.android.framework.proxy.events.EventEmitter
|
|
15
15
|
import com.urbanairship.android.framework.proxy.proxies.AirshipProxy
|
|
16
16
|
import com.urbanairship.android.framework.proxy.proxies.EnableUserNotificationsArgs
|
|
@@ -337,7 +337,7 @@ class AirshipPlugin : Plugin() {
|
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
val result = proxy.actions.runAction(name, value)
|
|
340
|
-
if (result.status == ActionResult.
|
|
340
|
+
if (result.status == ActionResult.Status.COMPLETED) {
|
|
341
341
|
result.value
|
|
342
342
|
} else {
|
|
343
343
|
throw Exception("Action failed ${result.status}")
|
|
@@ -6,7 +6,7 @@ import android.content.Context
|
|
|
6
6
|
import android.util.Log
|
|
7
7
|
import com.getcapacitor.CapConfig
|
|
8
8
|
import com.urbanairship.AirshipConfigOptions
|
|
9
|
-
import com.urbanairship.
|
|
9
|
+
import com.urbanairship.Airship
|
|
10
10
|
import com.urbanairship.analytics.Extension
|
|
11
11
|
import com.urbanairship.android.framework.proxy.BaseAutopilot
|
|
12
12
|
import com.urbanairship.android.framework.proxy.ProxyConfig
|
|
@@ -16,9 +16,9 @@ import com.urbanairship.json.JsonValue
|
|
|
16
16
|
|
|
17
17
|
class CapacitorAutopilot : BaseAutopilot() {
|
|
18
18
|
|
|
19
|
-
override fun onReady(context: Context
|
|
19
|
+
override fun onReady(context: Context) {
|
|
20
20
|
Log.i("CapacitorAutopilot", "onAirshipReady")
|
|
21
|
-
|
|
21
|
+
Airship.analytics.registerSDKExtension(Extension.CAPACITOR, AirshipCapacitorVersion.version)
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
override fun createConfigBuilder(context: Context): AirshipConfigOptions.Builder {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ua/capacitor-airship",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Airship capacitor plugin",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"verify": "npm run build && npm run verify:ios && npm run verify:android",
|
|
33
33
|
"verify:ios": "cd ios && pod install && xcrun xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
|
|
34
|
-
"verify:android": "cd android && ./gradlew clean build && cd ..",
|
|
34
|
+
"verify:android": "cd android && ./gradlew clean build -x lint && cd ..",
|
|
35
35
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
36
36
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
37
37
|
"eslint": "eslint . --ext ts",
|