Skip to content

Commit 7c2327b

Browse files
committed
Remove obsolete Android widget implementation
1 parent 20e431d commit 7c2327b

189 files changed

Lines changed: 979 additions & 474 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
5555
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
5656
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://ota.ccnubox.muxixyz.com/65d670f0-9625-4631-9603-f4b11f44e621"/>
57-
<service android:name=".widgets.services.RecentClassesService" android:permission="android.permission.BIND_REMOTEVIEWS" android:exported="false"/>
5857
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">
5958
<intent-filter>
6059
<action android:name="android.intent.action.MAIN"/>
@@ -74,19 +73,5 @@
7473
<category android:name="com.muxixyz.ccnubox"/>
7574
</intent-filter>
7675
</receiver>
77-
<receiver android:name=".widgets.providers.RecentClassesProvider2x2" android:exported="true">
78-
<intent-filter>
79-
<action android:name="com.muxixyz.ccnubox.UPDATE_COURSE_WIDGET"/>
80-
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
81-
</intent-filter>
82-
<meta-data android:name="android.appwidget.provider" android:resource="@xml/recent_classes_widget_info_2x2"/>
83-
</receiver>
84-
<receiver android:name=".widgets.providers.RecentClassesProvider4x2" android:exported="true">
85-
<intent-filter>
86-
<action android:name="com.muxixyz.ccnubox.UPDATE_COURSE_WIDGET"/>
87-
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
88-
</intent-filter>
89-
<meta-data android:name="android.appwidget.provider" android:resource="@xml/recent_classes_widget_info_4x2"/>
90-
</receiver>
9176
</application>
92-
</manifest>
77+
</manifest>

android/app/src/main/java/com/muxixyz/ccnubox/MainApplication.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import com.facebook.soloader.SoLoader
1313

1414
import expo.modules.ApplicationLifecycleDispatcher
1515
import expo.modules.ExpoReactHostFactory
16-
import com.muxixyz.ccnubox.widgets.WidgetManagerPackage
1716

1817
class MainApplication : Application(), ReactApplication {
1918

@@ -41,8 +40,6 @@ class MainApplication : Application(), ReactApplication {
4140
}
4241

4342
private fun getPackages(): List<ReactPackage> {
44-
return PackageList(this).getPackages().also {
45-
it.add(WidgetManagerPackage())
46-
}
43+
return PackageList(this).getPackages()
4744
}
4845
}

android/app/src/main/java/com/muxixyz/ccnubox/widgets/ScheduleRemoteViewFactory.kt

Lines changed: 0 additions & 67 deletions
This file was deleted.

android/app/src/main/java/com/muxixyz/ccnubox/widgets/WidgetManagerModule.kt

Lines changed: 0 additions & 94 deletions
This file was deleted.

android/app/src/main/java/com/muxixyz/ccnubox/widgets/WidgetManagerPackage.kt

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)