Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
abedelaziz-deriv committed Sep 10, 2024
1 parent 3984cfa commit d994f3b
Show file tree
Hide file tree
Showing 2 changed files with 258 additions and 261 deletions.
26 changes: 13 additions & 13 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<keywords>CleverTap</keywords>

<js-module src="www/CleverTap.js" name="CleverTap">
<clobbers target="CleverTap" />
<clobbers target="cordova.plugins.CleverTap" />
</js-module>

<preference name="CLEVERTAP_ACCOUNT_ID" />
<preference name="CLEVERTAP_TOKEN" />
<preference name="CLEVERTAP_REGION" default=" "/>

<platform name="ios">

<config-file target="*-Info.plist" parent="CleverTapAccountID">
<string>$CLEVERTAP_ACCOUNT_ID</string>
</config-file>
Expand All @@ -27,12 +27,12 @@
<string>$CLEVERTAP_REGION</string>
</config-file>

<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
<string>development</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
<string>production</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
<string>development</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
<string>production</string>
</config-file>

<config-file target="config.xml" parent="/*">
<feature name="CleverTapPlugin">
Expand All @@ -49,12 +49,12 @@
<pod name="CleverTap-iOS-SDK" spec="6.2.1" />
</pods>
</podspec>
<!-- <framework src="CleverTap-iOS-SDK" type="podspec" spec="5.1.2" />-->
<!-- <framework src="CleverTap-iOS-SDK" type="podspec" spec="5.1.2" />-->
<header-file src="src/ios/AppDelegate+CleverTapPlugin.h" />
<source-file src="src/ios/AppDelegate+CleverTapPlugin.m" />
<header-file src="src/ios/CleverTapPlugin.h" />
<source-file src="src/ios/CleverTapPlugin.m" />

</platform>

<platform name="android">
Expand All @@ -72,15 +72,15 @@
<uses-permission android:name="android.permission.WAKE_LOCK" />
</config-file>

<config-file target="AndroidManifest.xml" parent="/manifest/application">
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service
android:exported="true"
android:name="com.clevertap.android.sdk.pushnotification.fcm.FcmMessageListenerService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>

<service
android:name="com.clevertap.android.sdk.pushnotification.CTNotificationIntentService"
android:exported="false">
Expand All @@ -98,7 +98,7 @@
android:exported="false"
android:enabled="true">
</receiver>
</config-file>
</config-file>

<source-file src="src/android/google-services.json" target-dir="." />
<source-file src="src/android/CleverTapPlugin.java" target-dir="src/com/clevertap/cordova/" />
Expand Down
Loading

0 comments on commit d994f3b

Please sign in to comment.