cordova-plugin-pushizo 0.1.0 → 0.2.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/LICENSE +21 -21
- package/README.md +402 -350
- package/package.json +54 -54
- package/plugin.xml +96 -96
- package/src/android/com/pushizo/cordova/PushizoBridgeCore.kt +610 -493
- package/src/android/com/pushizo/cordova/PushizoConfigStore.kt +41 -41
- package/src/android/com/pushizo/cordova/PushizoCordovaPlugin.kt +141 -141
- package/src/android/com/pushizo/cordova/PushizoInitProvider.kt +34 -34
- package/src/android/pushizo.gradle +6 -6
- package/src/ios/PushizoAppDelegateHook.swift +54 -54
- package/src/ios/PushizoBridgeCore.swift +600 -465
- package/src/ios/PushizoCordovaPlugin.swift +166 -157
- package/types/index.d.ts +64 -54
- package/www/core.d.ts +38 -6
- package/www/core.js +66 -5
- package/www/definitions.d.ts +120 -0
package/package.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cordova-plugin-pushizo",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Pushizo Cordova eklentisi: push bildirimi, kullanıcı/tag, e-posta/SMS, in-app mesaj ve bildirim kutusu (Android + iOS)",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "Pushizo <bildirim@pushizo.com>",
|
|
7
|
-
"homepage": "https://docs.pushizo.com/docs/sdk/cordova",
|
|
1
|
+
{
|
|
2
|
+
"name": "cordova-plugin-pushizo",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Pushizo Cordova eklentisi: push bildirimi, kullanıcı/tag, e-posta/SMS, in-app mesaj ve bildirim kutusu (Android + iOS)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Pushizo <bildirim@pushizo.com>",
|
|
7
|
+
"homepage": "https://docs.pushizo.com/docs/sdk/cordova",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/pushizo/pushizo-cordova.git"
|
|
11
|
-
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"cordova",
|
|
14
|
-
"ecosystem:cordova",
|
|
15
|
-
"cordova-android",
|
|
16
|
-
"cordova-ios",
|
|
17
|
-
"push",
|
|
18
|
-
"notifications",
|
|
19
|
-
"pushizo"
|
|
20
|
-
],
|
|
21
|
-
"types": "types/index.d.ts",
|
|
22
|
-
"files": [
|
|
23
|
-
"plugin.xml",
|
|
24
|
-
"www",
|
|
25
|
-
"src/android",
|
|
26
|
-
"src/ios",
|
|
27
|
-
"types/index.d.ts",
|
|
28
|
-
"README.md"
|
|
29
|
-
],
|
|
30
|
-
"cordova": {
|
|
31
|
-
"id": "cordova-plugin-pushizo",
|
|
32
|
-
"platforms": [
|
|
33
|
-
"android",
|
|
34
|
-
"ios"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"engines": {
|
|
38
|
-
"cordovaDependencies": {
|
|
39
|
-
"0.1.0": {
|
|
40
|
-
"cordova": ">=12.0.0",
|
|
41
|
-
"cordova-android": ">=12.0.0",
|
|
42
|
-
"cordova-ios": ">=7.0.0"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"scripts": {
|
|
47
|
-
"build": "tsc -p tsconfig.build.json",
|
|
48
|
-
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p types/tsconfig.json --noEmit",
|
|
49
|
-
"test": "vitest run",
|
|
50
|
-
"prepack": "npm run build"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@types/node": "^22.20.5",
|
|
54
|
-
"typescript": "^5.9.3",
|
|
55
|
-
"vitest": "^5.0.3"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"cordova",
|
|
14
|
+
"ecosystem:cordova",
|
|
15
|
+
"cordova-android",
|
|
16
|
+
"cordova-ios",
|
|
17
|
+
"push",
|
|
18
|
+
"notifications",
|
|
19
|
+
"pushizo"
|
|
20
|
+
],
|
|
21
|
+
"types": "types/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"plugin.xml",
|
|
24
|
+
"www",
|
|
25
|
+
"src/android",
|
|
26
|
+
"src/ios",
|
|
27
|
+
"types/index.d.ts",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"cordova": {
|
|
31
|
+
"id": "cordova-plugin-pushizo",
|
|
32
|
+
"platforms": [
|
|
33
|
+
"android",
|
|
34
|
+
"ios"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"cordovaDependencies": {
|
|
39
|
+
"0.1.0": {
|
|
40
|
+
"cordova": ">=12.0.0",
|
|
41
|
+
"cordova-android": ">=12.0.0",
|
|
42
|
+
"cordova-ios": ">=7.0.0"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsc -p tsconfig.build.json",
|
|
48
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p types/tsconfig.json --noEmit",
|
|
49
|
+
"test": "vitest run",
|
|
50
|
+
"prepack": "npm run build"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/node": "^22.20.5",
|
|
54
|
+
"typescript": "^5.9.3",
|
|
55
|
+
"vitest": "^5.0.3"
|
|
56
|
+
}
|
|
57
|
+
}
|
package/plugin.xml
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!-- Pushizo Cordova eklentisi: native Pushizo Android/iOS SDK'larını cordova.exec ile sarar. -->
|
|
3
|
-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
|
-
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
5
|
-
id="cordova-plugin-pushizo"
|
|
6
|
-
version="0.
|
|
7
|
-
<name>Pushizo</name>
|
|
8
|
-
<description>Push bildirimi, kullanıcı/tag, e-posta/SMS, in-app mesaj ve bildirim kutusu (Pushizo)</description>
|
|
9
|
-
<license>MIT</license>
|
|
10
|
-
<keywords>push,notifications,fcm,apns,in-app,inbox,pushizo</keywords>
|
|
11
|
-
<repo>https://github.com/pushizo/pushizo-cordova.git</repo>
|
|
12
|
-
|
|
13
|
-
<engines>
|
|
14
|
-
<engine name="cordova" version=">=12.0.0" />
|
|
15
|
-
<engine name="cordova-android" version=">=12.0.0" />
|
|
16
|
-
<engine name="cordova-ios" version=">=7.0.0" />
|
|
17
|
-
</engines>
|
|
18
|
-
|
|
19
|
-
<!-- JS katmanı (TypeScript kaynağı src/*.ts, `npm run build` ile www/ altına derlenir). -->
|
|
20
|
-
<js-module src="www/core.js" name="core" />
|
|
21
|
-
<js-module src="www/bridge.js" name="bridge" />
|
|
22
|
-
<js-module src="www/pushizo.js" name="Pushizo">
|
|
23
|
-
<clobbers target="Pushizo" />
|
|
24
|
-
<clobbers target="window.plugins.Pushizo" />
|
|
25
|
-
</js-module>
|
|
26
|
-
|
|
27
|
-
<platform name="android">
|
|
28
|
-
<config-file target="res/xml/config.xml" parent="/*">
|
|
29
|
-
<feature name="Pushizo">
|
|
30
|
-
<param name="android-package" value="com.pushizo.cordova.PushizoCordovaPlugin" />
|
|
31
|
-
<!-- Soğuk başlatma tıklamasının kaçmaması için eklenti uygulama açılışında yüklenir. -->
|
|
32
|
-
<param name="onload" value="true" />
|
|
33
|
-
</feature>
|
|
34
|
-
</config-file>
|
|
35
|
-
|
|
36
|
-
<!--
|
|
37
|
-
POST_NOTIFICATIONS, INTERNET, FCM servisi (com.google.firebase.MESSAGING_EVENT) ve bildirim açma
|
|
38
|
-
Activity'si Pushizo Android SDK (AAR) manifestinden Gradle manifest birleştirmesiyle eklenir.
|
|
39
|
-
-->
|
|
40
|
-
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
41
|
-
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
42
|
-
</config-file>
|
|
43
|
-
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
44
|
-
<provider
|
|
45
|
-
android:name="com.pushizo.cordova.PushizoInitProvider"
|
|
46
|
-
android:authorities="${applicationId}.pushizo-cordova-init"
|
|
47
|
-
android:exported="false" />
|
|
48
|
-
</config-file>
|
|
49
|
-
|
|
50
|
-
<source-file src="src/android/com/pushizo/cordova/PushizoCordovaPlugin.kt" target-dir="app/src/main/kotlin/com/pushizo/cordova" />
|
|
51
|
-
<source-file src="src/android/com/pushizo/cordova/PushizoBridgeCore.kt" target-dir="app/src/main/kotlin/com/pushizo/cordova" />
|
|
52
|
-
<source-file src="src/android/com/pushizo/cordova/PushizoConfigStore.kt" target-dir="app/src/main/kotlin/com/pushizo/cordova" />
|
|
53
|
-
<source-file src="src/android/com/pushizo/cordova/PushizoInitProvider.kt" target-dir="app/src/main/kotlin/com/pushizo/cordova" />
|
|
54
|
-
|
|
55
|
-
<framework src="src/android/pushizo.gradle" custom="true" type="gradleReference" />
|
|
56
|
-
<framework src="com.pushizo:pushizo-android:0.1
|
|
57
|
-
</platform>
|
|
58
|
-
|
|
59
|
-
<platform name="ios">
|
|
60
|
-
<config-file target="config.xml" parent="/*">
|
|
61
|
-
<feature name="Pushizo">
|
|
62
|
-
<param name="ios-package" value="PushizoCordovaPlugin" />
|
|
63
|
-
<param name="onload" value="true" />
|
|
64
|
-
</feature>
|
|
65
|
-
</config-file>
|
|
66
|
-
|
|
67
|
-
<!-- Arka plan (content-available) bildirimleri. -->
|
|
68
|
-
<config-file target="*-Info.plist" parent="UIBackgroundModes">
|
|
69
|
-
<array>
|
|
70
|
-
<string>remote-notification</string>
|
|
71
|
-
</array>
|
|
72
|
-
</config-file>
|
|
73
|
-
|
|
74
|
-
<!-- Push Notifications yeteneği (APNs ortamı derleme türüne göre). -->
|
|
75
|
-
<config-file target="*/Entitlements-Debug.plist" parent="aps-environment">
|
|
76
|
-
<string>development</string>
|
|
77
|
-
</config-file>
|
|
78
|
-
<config-file target="*/Entitlements-Release.plist" parent="aps-environment">
|
|
79
|
-
<string>production</string>
|
|
80
|
-
</config-file>
|
|
81
|
-
|
|
82
|
-
<source-file src="src/ios/PushizoCordovaPlugin.swift" />
|
|
83
|
-
<source-file src="src/ios/PushizoBridgeCore.swift" />
|
|
84
|
-
<source-file src="src/ios/PushizoAppDelegateHook.swift" />
|
|
85
|
-
|
|
86
|
-
<podspec>
|
|
87
|
-
<config>
|
|
88
|
-
<source url="https://cdn.cocoapods.org/" />
|
|
89
|
-
</config>
|
|
90
|
-
<pods use-frameworks="true">
|
|
91
|
-
<!-- Monorepo/yerel geliştirme: platforms/ios/Podfile içinde :path => '<repo>/sdk/ios' (README). -->
|
|
92
|
-
<pod name="Pushizo" spec="~> 0.
|
|
93
|
-
</pods>
|
|
94
|
-
</podspec>
|
|
95
|
-
</platform>
|
|
96
|
-
</plugin>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- Pushizo Cordova eklentisi: native Pushizo Android/iOS SDK'larını cordova.exec ile sarar. -->
|
|
3
|
+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
5
|
+
id="cordova-plugin-pushizo"
|
|
6
|
+
version="0.2.0">
|
|
7
|
+
<name>Pushizo</name>
|
|
8
|
+
<description>Push bildirimi, kullanıcı/tag, e-posta/SMS, in-app mesaj ve bildirim kutusu (Pushizo)</description>
|
|
9
|
+
<license>MIT</license>
|
|
10
|
+
<keywords>push,notifications,fcm,apns,in-app,inbox,pushizo</keywords>
|
|
11
|
+
<repo>https://github.com/pushizo/pushizo-cordova.git</repo>
|
|
12
|
+
|
|
13
|
+
<engines>
|
|
14
|
+
<engine name="cordova" version=">=12.0.0" />
|
|
15
|
+
<engine name="cordova-android" version=">=12.0.0" />
|
|
16
|
+
<engine name="cordova-ios" version=">=7.0.0" />
|
|
17
|
+
</engines>
|
|
18
|
+
|
|
19
|
+
<!-- JS katmanı (TypeScript kaynağı src/*.ts, `npm run build` ile www/ altına derlenir). -->
|
|
20
|
+
<js-module src="www/core.js" name="core" />
|
|
21
|
+
<js-module src="www/bridge.js" name="bridge" />
|
|
22
|
+
<js-module src="www/pushizo.js" name="Pushizo">
|
|
23
|
+
<clobbers target="Pushizo" />
|
|
24
|
+
<clobbers target="window.plugins.Pushizo" />
|
|
25
|
+
</js-module>
|
|
26
|
+
|
|
27
|
+
<platform name="android">
|
|
28
|
+
<config-file target="res/xml/config.xml" parent="/*">
|
|
29
|
+
<feature name="Pushizo">
|
|
30
|
+
<param name="android-package" value="com.pushizo.cordova.PushizoCordovaPlugin" />
|
|
31
|
+
<!-- Soğuk başlatma tıklamasının kaçmaması için eklenti uygulama açılışında yüklenir. -->
|
|
32
|
+
<param name="onload" value="true" />
|
|
33
|
+
</feature>
|
|
34
|
+
</config-file>
|
|
35
|
+
|
|
36
|
+
<!--
|
|
37
|
+
POST_NOTIFICATIONS, INTERNET, FCM servisi (com.google.firebase.MESSAGING_EVENT) ve bildirim açma
|
|
38
|
+
Activity'si Pushizo Android SDK (AAR) manifestinden Gradle manifest birleştirmesiyle eklenir.
|
|
39
|
+
-->
|
|
40
|
+
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
41
|
+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
42
|
+
</config-file>
|
|
43
|
+
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
44
|
+
<provider
|
|
45
|
+
android:name="com.pushizo.cordova.PushizoInitProvider"
|
|
46
|
+
android:authorities="${applicationId}.pushizo-cordova-init"
|
|
47
|
+
android:exported="false" />
|
|
48
|
+
</config-file>
|
|
49
|
+
|
|
50
|
+
<source-file src="src/android/com/pushizo/cordova/PushizoCordovaPlugin.kt" target-dir="app/src/main/kotlin/com/pushizo/cordova" />
|
|
51
|
+
<source-file src="src/android/com/pushizo/cordova/PushizoBridgeCore.kt" target-dir="app/src/main/kotlin/com/pushizo/cordova" />
|
|
52
|
+
<source-file src="src/android/com/pushizo/cordova/PushizoConfigStore.kt" target-dir="app/src/main/kotlin/com/pushizo/cordova" />
|
|
53
|
+
<source-file src="src/android/com/pushizo/cordova/PushizoInitProvider.kt" target-dir="app/src/main/kotlin/com/pushizo/cordova" />
|
|
54
|
+
|
|
55
|
+
<framework src="src/android/pushizo.gradle" custom="true" type="gradleReference" />
|
|
56
|
+
<framework src="com.pushizo:pushizo-android:0.2.1" />
|
|
57
|
+
</platform>
|
|
58
|
+
|
|
59
|
+
<platform name="ios">
|
|
60
|
+
<config-file target="config.xml" parent="/*">
|
|
61
|
+
<feature name="Pushizo">
|
|
62
|
+
<param name="ios-package" value="PushizoCordovaPlugin" />
|
|
63
|
+
<param name="onload" value="true" />
|
|
64
|
+
</feature>
|
|
65
|
+
</config-file>
|
|
66
|
+
|
|
67
|
+
<!-- Arka plan (content-available) bildirimleri. -->
|
|
68
|
+
<config-file target="*-Info.plist" parent="UIBackgroundModes">
|
|
69
|
+
<array>
|
|
70
|
+
<string>remote-notification</string>
|
|
71
|
+
</array>
|
|
72
|
+
</config-file>
|
|
73
|
+
|
|
74
|
+
<!-- Push Notifications yeteneği (APNs ortamı derleme türüne göre). -->
|
|
75
|
+
<config-file target="*/Entitlements-Debug.plist" parent="aps-environment">
|
|
76
|
+
<string>development</string>
|
|
77
|
+
</config-file>
|
|
78
|
+
<config-file target="*/Entitlements-Release.plist" parent="aps-environment">
|
|
79
|
+
<string>production</string>
|
|
80
|
+
</config-file>
|
|
81
|
+
|
|
82
|
+
<source-file src="src/ios/PushizoCordovaPlugin.swift" />
|
|
83
|
+
<source-file src="src/ios/PushizoBridgeCore.swift" />
|
|
84
|
+
<source-file src="src/ios/PushizoAppDelegateHook.swift" />
|
|
85
|
+
|
|
86
|
+
<podspec>
|
|
87
|
+
<config>
|
|
88
|
+
<source url="https://cdn.cocoapods.org/" />
|
|
89
|
+
</config>
|
|
90
|
+
<pods use-frameworks="true">
|
|
91
|
+
<!-- Monorepo/yerel geliştirme: platforms/ios/Podfile içinde :path => '<repo>/sdk/ios' (README). -->
|
|
92
|
+
<pod name="Pushizo" spec="~> 0.2" />
|
|
93
|
+
</pods>
|
|
94
|
+
</podspec>
|
|
95
|
+
</platform>
|
|
96
|
+
</plugin>
|