Skip to content

Commit

Permalink
Merge pull request #255 from naz013/feature/REM-892_Move_app_widgets_…
Browse files Browse the repository at this point in the history
…to_separate_module

REM-892 - Move home screen widgets to the separate module
  • Loading branch information
naz013 authored Dec 25, 2024
2 parents 1443ab6 + 3bba8d7 commit ed64af5
Show file tree
Hide file tree
Showing 846 changed files with 6,248 additions and 4,615 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ jobs:
name: voice_reports
path: voice-engine-ktx/build/test-results # path to where the xml test results are stored

- name: Upload iCalendar module Test results
uses: actions/upload-artifact@v4
if: ${{ always() }} # IMPORTANT: Upload reports regardless of status
with:
name: iCalendar_reports
path: icalendar/build/test-results # path to where the xml test results are stored

- name: Run tests for Main module
run: ./gradlew testProDebugUnitTest

Expand Down
10 changes: 9 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ dependencies {
implementation(project(":cloud-api"))
implementation(project(":cloud"))
implementation(project(":feature-common"))
implementation(project(":appwidgets"))
implementation(project(":navigation-api"))
implementation(project(":platform-common"))
implementation(project(":ui-common"))
implementation(project(":usecase:googletasks"))
implementation(project(":usecase:birthdays"))
implementation(project(":usecase:notes"))
implementation(project(":usecase:reminders"))
implementation(project(":icalendar"))

implementation(libs.google.api.services.calendar) {
exclude(group = "com.google.guava", module = "listenablefuture")
Expand All @@ -213,7 +222,6 @@ dependencies {
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.swiperefreshlayout)
implementation(libs.androidx.viewpager2)
implementation(libs.androidx.biometric)
implementation(libs.androidx.splashscreen)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.fragment.ktx)
Expand Down
6 changes: 3 additions & 3 deletions app/src/free/java/com/elementary/tasks/AdsProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import android.widget.RatingBar
import android.widget.TextView
import androidx.annotation.LayoutRes
import com.elementary.tasks.core.utils.SuperUtil
import com.elementary.tasks.core.utils.ui.gone
import com.elementary.tasks.core.utils.ui.transparent
import com.elementary.tasks.core.utils.ui.visible
import com.github.naz013.logging.Logger
import com.github.naz013.ui.common.view.gone
import com.github.naz013.ui.common.view.transparent
import com.github.naz013.ui.common.view.visible
import com.google.android.gms.ads.AdListener
import com.google.android.gms.ads.AdLoader
import com.google.android.gms.ads.AdRequest
Expand Down
243 changes: 1 addition & 242 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,6 @@
android:name=".birthdays.dialog.ShowBirthday29Activity"
android:excludeFromRecents="true"
android:exported="false" />
<activity
android:name=".pin.PinLoginActivity"
android:excludeFromRecents="true"
android:exported="false" />
<activity
android:name="com.elementary.tasks.settings.other.SendFeedbackActivity"
android:exported="false" />
Expand Down Expand Up @@ -456,212 +452,8 @@
android:foregroundServiceType="location"
android:permission="android.permission.FOREGROUND_SERVICE_LOCATION" />

<receiver
android:name=".core.appwidgets.buttons.CombinedButtonsWidget"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/quick_buttons">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/combined_widget_metadata" />
</receiver>

<activity
android:name=".core.appwidgets.buttons.CombinedWidgetConfigActivity"
android:configChanges="keyboardHidden|orientation|keyboard"
android:excludeFromRecents="true"
android:exported="true"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>

<receiver
android:name=".core.appwidgets.singlenote.SingleNoteWidget"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/note">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/single_note_widget_metadata" />
</receiver>

<activity
android:name=".core.appwidgets.singlenote.SingleNoteWidgetConfigActivity"
android:configChanges="keyboardHidden|orientation|keyboard"
android:excludeFromRecents="true"
android:exported="true"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>

<activity
android:name=".core.appwidgets.events.EventsWidgetConfigActivity"
android:configChanges="keyboardHidden|orientation|keyboard"
android:excludeFromRecents="true"
android:exported="true"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".core.appwidgets.notes.NotesWidgetConfigActivity"
android:configChanges="keyboardHidden|orientation|keyboard"
android:excludeFromRecents="true"
android:exported="true"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".core.appwidgets.googletasks.TasksWidgetConfigActivity"
android:configChanges="keyboardHidden|orientation|keyboard"
android:excludeFromRecents="true"
android:exported="true"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>

<activity
android:name=".core.appwidgets.birthdays.BirthdaysWidgetConfigActivity"
android:configChanges="keyboardHidden|orientation|keyboard"
android:excludeFromRecents="true"
android:exported="true"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>

<activity
android:name=".core.appwidgets.AppWidgetActionActivity"
android:configChanges="keyboardHidden"
android:excludeFromRecents="true"
android:exported="true"
android:windowSoftInputMode="stateUnchanged" />

<receiver
android:name=".core.appwidgets.events.EventsWidget"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/active_reminders">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="justreminder.LOCATION_CHANGED" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/reminders_widget_metadata" />
</receiver>

<service
android:name=".core.appwidgets.events.EventsService"
android:permission="android.permission.BIND_REMOTEVIEWS" />

<receiver
android:name=".core.appwidgets.notes.NotesWidget"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/notes">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/note_widget_metadata" />
</receiver>

<service
android:name=".core.appwidgets.notes.NotesService"
android:permission="android.permission.BIND_REMOTEVIEWS" />

<receiver
android:name=".core.appwidgets.googletasks.TasksWidget"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/google_tasks">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/tasks_widget_metadata" />
</receiver>

<service
android:name=".core.appwidgets.googletasks.TasksService"
android:permission="android.permission.BIND_REMOTEVIEWS" />

<receiver
android:name=".core.appwidgets.birthdays.BirthdaysWidget"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/birthdays">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/birthdays_widget_metadata" />
</receiver>

<service
android:name=".core.appwidgets.birthdays.BirthdaysService"
android:permission="android.permission.BIND_REMOTEVIEWS" />

<activity
android:name=".core.appwidgets.calendar.CalendarWidgetConfigActivity"
android:configChanges="keyboardHidden|orientation|keyboard"
android:excludeFromRecents="true"
android:exported="true"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>

<receiver
android:name=".core.appwidgets.calendar.CalendarWidget"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/calendar">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/calendar_widget_metadata" />
</receiver>

<service
android:name=".core.appwidgets.calendar.CalendarWeekdayService"
android:permission="android.permission.BIND_REMOTEVIEWS" />
<service
android:name=".core.appwidgets.calendar.CalendarMonthService"
android:permission="android.permission.BIND_REMOTEVIEWS" />

<activity
android:name=".core.appwidgets.buttons.VoiceWidgetDialog"
android:name=".voice.VoiceWidgetDialog"
android:configChanges="keyboardHidden|orientation"
android:excludeFromRecents="true"
android:exported="true">
Expand All @@ -670,46 +462,13 @@
</intent-filter>
</activity>

<receiver
android:name=".core.appwidgets.calendar.CalendarPreviousReceiver"
android:exported="false"
android:permission="com.nsystudio.permission.UPDATE_CALENDAR">
<intent-filter>
<action android:name="com.elementary.tasks.core.app_widgets.calendar.ACTION_PREVIOUS" />
</intent-filter>
</receiver>

<receiver
android:name=".core.appwidgets.calendar.CalendarNextReceiver"
android:exported="false"
android:permission="com.nsystudio.permission.UPDATE_CALENDAR">
<intent-filter>
<action android:name="com.elementary.tasks.core.app_widgets.calendar.ACTION_NEXT" />
</intent-filter>
</receiver>

<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="${apiKey}" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

<activity
android:name="com.dropbox.core.android.AuthActivity"
android:configChanges="orientation|keyboard"
android:exported="true"
android:launchMode="singleTask">
<intent-filter>
<data android:scheme="db-4zi1d414h0v8sxe" />

<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
Expand Down
Loading

0 comments on commit ed64af5

Please sign in to comment.