Skip to content

Commit

Permalink
Added ability to handle activity actions
Browse files Browse the repository at this point in the history
android.provider.AlarmClock provides a number of activity actions that allow other apps to set an alarm using this app. The app can now handle those activity actions.
  • Loading branch information
WrichikBasu committed Oct 25, 2020
1 parent 5012e4f commit 20efd43
Show file tree
Hide file tree
Showing 10 changed files with 644 additions and 280 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "in.basulabs.shakealarmclock"
minSdkVersion 21
targetSdkVersion 30
versionCode 3
versionName "1.2"
versionCode 4
versionName "1.2.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand All @@ -23,8 +23,8 @@ android {

buildTypes {
release {
minifyEnabled false
shrinkResources false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
28 changes: 26 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
</intent-filter>
</receiver>

<activity android:name=".Activity_AlarmsList">
<activity android:name=".Activity_AlarmsList"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -92,10 +94,14 @@

<activity
android:name=".Activity_AlarmDetails"
android:enabled="true"
android:exported="false"
android:parentActivityName=".Activity_AlarmsList" />

<activity
android:name=".Activity_RingAlarm"
android:enabled="true"
android:exported="false"
android:configChanges="orientation|keyboard"
android:excludeFromRecents="true"
android:noHistory="true"
Expand All @@ -106,24 +112,42 @@

<activity
android:name=".Activity_RingtonePicker"
android:enabled="true"
android:exported="true"
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.RINGTONE_PICKER" />

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

<activity
android:name=".Activity_Settings"
android:enabled="true"
android:exported="false"
android:parentActivityName=".Activity_AlarmsList" />

<service
android:name=".Service_UpdateAlarm"
android:enabled="true"
android:exported="true"
android:permission="in.basulabs.shakealarmclock.PLUGIN_PERMISSION" />

<activity android:name=".Activity_IntentManager"
android:enabled="true"
android:exported="true"
android:theme="@style/Theme.AppCompat.Translucent"
android:configChanges="uiMode|orientation|keyboard|colorMode">

<intent-filter>
<action android:name="android.intent.action.DISMISS_ALARM"/>
<action android:name="android.intent.action.SET_ALARM"/>
<action android:name="android.intent.action.SNOOZE_ALARM"/>

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

</activity>
</application>

</manifest>
Loading

0 comments on commit 20efd43

Please sign in to comment.