Skip to content

Commit

Permalink
chore: Remove notification plugins (#3739)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Oct 28, 2020
1 parent af46b9f commit f3022a3
Show file tree
Hide file tree
Showing 26 changed files with 3 additions and 3,502 deletions.
4 changes: 0 additions & 4 deletions android/capacitor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ ext {
androidxCoreVersion = project.hasProperty('androidxCoreVersion') ? rootProject.ext.androidxCoreVersion : '1.2.0'
androidxMaterialVersion = project.hasProperty('androidxMaterialVersion') ? rootProject.ext.androidxMaterialVersion : '1.1.0-rc02'
androidxBrowserVersion = project.hasProperty('androidxBrowserVersion') ? rootProject.ext.androidxBrowserVersion : '1.2.0'
androidxLocalbroadcastmanagerVersion = project.hasProperty('androidxLocalbroadcastmanagerVersion') ? rootProject.ext.androidxLocalbroadcastmanagerVersion : '1.0.0'
androidxExifInterfaceVersion = project.hasProperty('androidxExifInterfaceVersion') ? rootProject.ext.androidxExifInterfaceVersion : '1.2.0'
firebaseMessagingVersion = project.hasProperty('firebaseMessagingVersion') ? rootProject.ext.firebaseMessagingVersion : '20.1.2'
playServicesLocationVersion = project.hasProperty('playServicesLocationVersion') ? rootProject.ext.playServicesLocationVersion : '17.0.0'
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.12'
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.1'
Expand Down Expand Up @@ -64,9 +62,7 @@ dependencies {
implementation "androidx.core:core:$androidxCoreVersion"
implementation "com.google.android.material:material:$androidxMaterialVersion"
implementation "androidx.browser:browser:$androidxBrowserVersion"
implementation "androidx.localbroadcastmanager:localbroadcastmanager:$androidxLocalbroadcastmanagerVersion"
implementation "androidx.exifinterface:exifinterface:$androidxExifInterfaceVersion"
implementation "com.google.firebase:firebase-messaging:$firebaseMessagingVersion"
implementation "com.google.android.gms:play-services-location:$playServicesLocationVersion"
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
Expand Down
21 changes: 2 additions & 19 deletions android/capacitor/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,7 @@
android:required="false" />

<application>
<service android:name="com.getcapacitor.plugin.background.BackgroundTaskService" android:exported="false" />
<receiver android:name="com.getcapacitor.plugin.notification.TimedNotificationPublisher" />
<receiver android:name="com.getcapacitor.plugin.notification.NotificationDismissReceiver" />
<meta-data android:name="firebase_messaging_auto_init_enabled" android:value="false" />
<service android:name="com.getcapacitor.CapacitorFirebaseMessagingService" android:stopWithTask="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<receiver android:name="com.getcapacitor.plugin.notification.LocalNotificationRestoreReceiver" android:directBootAware="true" android:exported="false">
<intent-filter>
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
</application>

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>

</application>
</manifest>
4 changes: 0 additions & 4 deletions android/capacitor/src/main/java/com/getcapacitor/Bridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import android.webkit.ValueCallback;
import android.webkit.WebSettings;
import android.webkit.WebView;
import com.getcapacitor.plugin.LocalNotifications;
import com.getcapacitor.plugin.PushNotifications;
import com.getcapacitor.plugin.SplashScreen;
import com.getcapacitor.util.HostMask;
import java.io.File;
Expand Down Expand Up @@ -382,8 +380,6 @@ private void initWebView() {
* Register our core Plugin APIs
*/
private void registerAllPlugins() {
this.registerPlugin(LocalNotifications.class);
this.registerPlugin(PushNotifications.class);
this.registerPlugin(SplashScreen.class);
this.registerPlugin(com.getcapacitor.plugin.WebView.class);

Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit f3022a3

Please sign in to comment.