Skip to content

Commit

Permalink
Small code reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai-Cristian Condrea committed Jun 9, 2024
1 parent 1b1b1ab commit 82006cb
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 23 deletions.
12 changes: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2
updates:
- package-ecosystem: gradle
directory: "/"
schedule:
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
- package-ecosystem: gradle
directory: "/"
schedule:
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
# Version 2.6_r1:

- Made various project structure enhancements for better readability and maintainability.
- Made various under-the-hood improvements for a better overall app experience.

# Version 2.5_r1:

- Made various under-the-hood improvements for a better overall app experience.

# Version 2.4_r1:

- Made various under-the-hood improvements for a better overall app experience.

# Version 2.3_r2:

- Made minor under-the-hood improvements for a better overall app experience.

# Version 2.3_r1:

- Made various under-the-hood improvements for a better overall app experience.

# Version 2.2_r1:

- Made various under-the-hood improvements for a better overall app experience.

# Version 2.1_r2:

- Made various under-the-hood improvements for a better overall app experience.

# Version 2.1_r1:

- Added support for Swedish, Hungarian, Bulgarian, Polish and Ukrainian languages.
- Made various under-the-hood improvements for a better overall app experience.

# Version 2.0_r1:

- Added Store Archive compatibility.
- Added Romanian language support.
- Added Russian language support.
Expand All @@ -42,32 +51,41 @@
- Under the hood improvements.

# Version 1.0_r9:

- Fixed crashes.
- Under the hood improvements.

# Version 1.0_r8:

- Under the hood improvements.

# Version 1.0_r7:

- Under the hood improvements.

# Version 1.0_r6:

- Changes to policy.
- Under the hood improvements.

# Version 1.0_r5:

- Under the hood improvements.

# Version 1.0_r4:

- Under the hood improvements.

# Version 1.0_r3:

- Added INTERNET permission (needs for Firebase).
- Fixed Firebase.

# Version 1.0_r2:

- Removed useless parts of launcher icon.
- Fixed README and Google Play Store description.

# Version 1.0_r1:

- Initial stable version released.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,25 @@ Music Sleep Timer Plus App

**Set your music to stop after you fall asleep effortlessly.**

Drift off to tranquility with Music Sleep Timer Plus, your personal companion for a peaceful night's rest. Our app seamlessly blends into your existing audio experience, ensuring that your favorite tunes, podcasts, or other content gently fade away as you slumber.
Drift off to tranquility with Music Sleep Timer Plus, your personal companion for a peaceful night's
rest. Our app seamlessly blends into your existing audio experience, ensuring that your favorite
tunes, podcasts, or other content gently fade away as you slumber.

Say goodbye to battery-draining music playback that disrupts your sleep. Music Sleep Timer Plus puts you in control, allowing you to set a convenient timer to automatically turn off your audio at a specified time. Simply tap the notification tile, select your desired duration, and let the app work its magic.
Say goodbye to battery-draining music playback that disrupts your sleep. Music Sleep Timer Plus puts
you in control, allowing you to set a convenient timer to automatically turn off your audio at a
specified time. Simply tap the notification tile, select your desired duration, and let the app work
its magic.

Lightweight and Efficient, Compatible with Your Favorite Apps

Unlike other sleep timer apps that burden your device, Music Sleep Timer Plus is a lightweight and efficient addition to your Android smartphone. It seamlessly integrates with your existing media players, ensuring compatibility with Spotify, YouTube, and any other app you prefer.
Unlike other sleep timer apps that burden your device, Music Sleep Timer Plus is a lightweight and
efficient addition to your Android smartphone. It seamlessly integrates with your existing media
players, ensuring compatibility with Spotify, YouTube, and any other app you prefer.

# Features

**Music Sleep Timer Plus** can be extend the timer directly from the notification drawer and the user can set timers by specific time or duration.
**Music Sleep Timer Plus** can be extend the timer directly from the notification drawer and the
user can set timers by specific time or duration.

# Screenshots

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.d4rk.musicsleeptimer.plus

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import androidx.test.platform.app.InstrumentationRegistry
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
Expand All @@ -19,6 +17,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.d4rk.musicsleeptimer.plus", appContext.packageName)
assertEquals("com.d4rk.musicsleeptimer.plus" , appContext.packageName)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ package com.d4rk.musicsleeptimer.plus.notifications
import android.app.Notification
import android.app.Notification.CATEGORY_EVENT
import android.app.Notification.VISIBILITY_PUBLIC
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.Action.CANCEL
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.Action.DECREMENT
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.Action.INCREMENT
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.NotificationManager.IMPORTANCE_LOW
Expand All @@ -15,6 +12,9 @@ import android.content.Context
import android.content.Intent
import android.graphics.drawable.Icon
import com.d4rk.musicsleeptimer.plus.R
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.Action.CANCEL
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.Action.DECREMENT
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.Action.INCREMENT
import com.d4rk.musicsleeptimer.plus.services.SleepAudioService
import com.d4rk.musicsleeptimer.plus.services.SleepTileService
import java.lang.System.currentTimeMillis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import android.service.quicksettings.Tile.STATE_ACTIVE
import android.service.quicksettings.Tile.STATE_INACTIVE
import android.service.quicksettings.TileService
import com.d4rk.musicsleeptimer.plus.R
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.notificationManager
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.find
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.handle
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.notificationManager
import com.d4rk.musicsleeptimer.plus.notifications.SleepNotification.toggle
import java.text.DateFormat.SHORT
import java.text.DateFormat.getTimeInstance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.d4rk.musicsleeptimer.plus

import org.junit.Assert.assertEquals
import org.junit.Test

import org.junit.Assert.*

/**
* Example local unit test, which will execute on the development machine (host).
*
Expand All @@ -12,6 +11,6 @@ import org.junit.Assert.*
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
assertEquals(4 , 2 + 2)
}
}

0 comments on commit 82006cb

Please sign in to comment.