Skip to content

Commit

Permalink
[CHORE] Updated various dependencies
Browse files Browse the repository at this point in the history
 - compose 1.7.3
 - kotlin 2.0.21
 - agp 8.7.1
 [FEAT] Added 2 messages for inviting people to join Telegram and Beta program.
  • Loading branch information
iZakirSheikh committed Oct 15, 2024
1 parent 51260a2 commit 2bb68cc
Show file tree
Hide file tree
Showing 10 changed files with 112 additions and 38 deletions.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 48 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgit.luolix.top%2FiZakirSheikh%2FAudiofy&countColor=%23dce775&style=plastic&labelStyle=lower)

## Don't forget to ⭐ the repo

![GitHub stars](https://img.shields.io/github/stars/iZakirSheikh/Audiofy2?style=social)
![GitHub forks](https://img.shields.io/github/forks/iZakirSheikh/Audiofy2?style=social)
![GitHub watchers](https://img.shields.io/github/watchers/iZakirSheikh/Audiofy2?style=social)
![GitHub follow](https://img.shields.io/github/followers/iZakirSheikh?label=Follow&style=social)

## Contact

<!--Contact-->
[![Telegram Group](https://img.shields.io/badge/Telegram-Discussion-252850?color=orangered&logo=telegram)](https://telegram.dog/audiofy_support)
![Email Badge](https://badgen.net/badge/email/helpline.prime.zs%40gmail.com/blue?icon=mail)
Expand All @@ -29,9 +31,15 @@

## Description

**Audiofy Media Player** is an open-source multimedia player app that lets you play music and videos on your Android device.
**Audiofy Media Player** is an open-source multimedia player app that lets you play music and videos
on your Android device.

**Audiofy Media Player** is a mulitmedia app that lets you enjoy various videos and audio formats on your Android device or Android TV. It uses the ffmpeg extension of Media3, a powerful media player library, to support common and special audio formats such as Vorbis, Opus, FLAC, MP3, AAC, DTS, etc. It also supports video formats such as H.264, H.265, VP8, VP9, AV1, etc. You can also sync audio and video tracks when using Bluetooth earphones or speaker, for a smooth viewing experience. It has a simple and minimalistic interface that lets you watch videos without any hassle..
**Audiofy Media Player** is a mulitmedia app that lets you enjoy various videos and audio formats
on your Android device or Android TV. It uses the ffmpeg extension of Media3, a powerful media
player library, to support common and special audio formats such as Vorbis, Opus, FLAC, MP3, AAC,
DTS, etc. It also supports video formats such as H.264, H.265, VP8, VP9, AV1, etc. You can also sync
audio and video tracks when using Bluetooth earphones or speaker, for a smooth viewing experience.
It has a simple and minimalistic interface that lets you watch videos without any hassle..

| Category | Supported Formats |
|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
Expand All @@ -53,37 +61,56 @@
<img src="https://github.com/iZakirSheikh/Audiofy/assets/46754437/ea2cd0b0-e563-4f25-86be-831db851790f" width="65">
<img src="https://github.com/iZakirSheikh/Audiofy/assets/46754437/cc4a358d-d64d-4ee5-ba67-68fd7c901b74" width="65">

## Features
* Audio/subtitle track selection
* Playback speed control
* Horizontal swipe and double tap to quickly seek
* Vertical swipe to change brightness (left) / volume (right)
* Pinch to zoom (Android 7+)
* PiP (Picture in Picture) on Android 8+ (resizable on Android 11+) (Comming soon)
* Resize (fit/crop)
* Volume boost (Coming soon)
* Auto frame rate matching on Android TV/boxes (Android 6+)
* Post-playback actions (delete file/skip to next)
* Touch lock (long tap)
* 3rd party equalizer / audio processing support (e.g. [Wavelet](https://github.com/Pittvandewitt/Wavelet))
* Media Session and Audio Focus support
* Pause playback when disconnecting headphones
## It has following features.

- Beautiful and Practical UI
- Seamless Adaptability: Automatically adjusts to any screen size for optimal experience.
- Edit tags (metadata)
- Full customizations
- Fade in/Fade out music when pause/resume playback.
- Light, dark, battery saver and system default theme support.
- Sleep timer.
- Replay gain support.
- Inbuilt equalizer.
- custom playlist support (No more worrying about playlists getting deleted automatically)
- Folder View support.
- Delightful animations, animated icons
- Video(Beta) Playback support.
- Music Widget (Supports Material3 theme.), resizable.
- Tons of settings.
- Multiple sorting options.
- Touch lock (long tap)
- 3rd party equalizer / audio processing support (e.g. Wavelet)
- Pauses playback when disconnecting headphones
- Post-playback actions (delete/trash file/skip to next)
- Resize (fit/crop) - Playback speed control ( 0.5x to 2x)
- Audio/subtitle track selection
- Follows latest material design guidelines.
- Just 5 MB in size

Download Googol Audiofy now and redefine your media experience.

## 🧰 Build and run the project
If you are a developer and want to build and run the Audiofy app from the source code, you need to follow these additional steps:

If you are a developer and want to build and run the Audiofy app from the source code, you need to
follow these additional steps:

### Prerequisites
- Install Android Studio Alpha (Hedgehog) or above on your machine. You can download it from here: https://developer.android.com/studio/preview

- Install Android Studio Alpha (Hedgehog) or above on your machine. You can download it from
here: https://developer.android.com/studio/preview
- Install Git on your machine. You can download it from here: https://git-scm.com/downloads

### Steps

To build the Audiofy app, follow these steps:

1. Clone the repository: Open a terminal window and type the following command: `git clone https://github.com/iZakirSheikh/audiofy2.git`
1. Clone the repository: Open a terminal window and type the following command:
`git clone https://github.com/iZakirSheikh/audiofy2.git`
2. Open Android Studio and select Open an existing project.
3. Navigate to the folder where you cloned or downloaded this repository and select it.
4. Wait for Android Studio to sync the project and resolve the dependencies.
65 Run the app on an emulator or a connected device by clicking the Run button.
65 Run the app on an emulator or a connected device by clicking the Run button.

You have successfully built and run the Audiofy app from the source code. Enjoy!

Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ android {
applicationId = "com.prime.player"
minSdk = 21
targetSdk = 35
versionCode = 135
versionName = "2.17.3"
versionCode = 149
versionName = "2.17.4"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables { useSupportLibrary = true }
// init different config fields.
Expand All @@ -93,7 +93,7 @@ android {
// Add necessary changes to debug apk.
debug {
// makes it possible to install both release and debug versions in same device.
// applicationIdSuffix = ".debug"
applicationIdSuffix = ".debug"
resValue("string", "app_name2", "Debug")
versionNameSuffix = "-debug"
}
Expand Down
27 changes: 26 additions & 1 deletion app/src/main/java/com/prime/media/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.GetApp
import androidx.compose.material.icons.outlined.MarkUnreadChatAlt
import androidx.compose.material.icons.outlined.NewReleases
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.NonRestartableComposable
Expand Down Expand Up @@ -56,6 +58,7 @@ import com.prime.media.core.compose.calculateWindowSizeClass
import com.prime.media.core.playback.Remote
import com.prime.media.settings.Settings
import com.primex.core.Amber
import com.primex.core.DahliaYellow
import com.primex.core.MetroGreen
import com.primex.core.MetroGreen2
import com.primex.core.OrientRed
Expand Down Expand Up @@ -161,7 +164,7 @@ private fun initSplashScreen(isColdStart: Boolean) {
* and display an indefinite message to the user, such as prompting them to purchase
* a feature like an ad-free experience.
*/
private const val MESSAGE_COUNT = 5
private const val MESSAGE_COUNT = 7

private val IAP_ARRAY = arrayOf(
BuildConfig.IAP_NO_ADS,
Expand Down Expand Up @@ -644,6 +647,28 @@ class MainActivity : ComponentActivity(), SystemFacade, AdEventListener {
if (result == Channel.Result.ActionPerformed)
launchAppStore(pkg)
}
5-> {
val result = channel.show(
"Join our beta program for exclusive features and early access!",
action = "Join",
duration = Duration.Indefinite,
accent = Color.DahliaYellow,
leading = Icons.Outlined.NewReleases
)
if (result == Channel.Result.ActionPerformed)
launch(Settings.JoinBetaIntent)
}
6 -> {
val result = channel.show(
"Join our Telegram group for exclusive discussions and updates!",
action = "Join Now",
duration = Duration.Indefinite,
accent = Color.MetroGreen,
leading = Icons.Outlined.MarkUnreadChatAlt
)
if (result == Channel.Result.ActionPerformed)
launch(Settings.TelegramIntent)
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/com/prime/media/settings/ViewState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ interface Settings : Blacklist {
val GithubIntent = Intent(Intent.ACTION_VIEW).apply {
data = Uri.parse("https://github.com/iZakirSheikh/Audiofy")
}
val JoinBetaIntent = Intent(Intent.ACTION_VIEW).apply {
data = Uri.parse("https://play.google.com/apps/testing/com.prime.player/join")
}

private const val PREFIX = "Audiofy"

Expand Down
16 changes: 8 additions & 8 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[versions]
# Plugins and Gradle configuration
#--------
agp = "8.6.1" # Android Gradle Plugin for building Android apps
kotlin = "2.0.20" # Kotlin language version for code compilation
agp = "8.7.1" # Android Gradle Plugin for building Android apps
kotlin = "2.0.21" # Kotlin language version for code compilation
firebase = "4.4.2" # Firebase core library for integrating Firebase services
crashlytics = "3.0.2" # Crashlytics for crash reporting and analytics
hilt-android = "2.52" # Hilt for dependency injection in Android apps

# Library Versions
room = "2.6.1" # Room persistence library for SQLite database access
media3 = "1.4.1" # Media playback, including audio and video
compose = "1.7.2" # Core foundation for building declarative UI with Compose
compose = "1.7.3" # Core foundation for building declarative UI with Compose
toolkit = "2.0.2-rc01" # Collection of UI utilities and extensions
accompanist = "0.36.0" # Accompanist is a labs like environment for new Compose APIs.
junit = "4.13.2"
Expand Down Expand Up @@ -58,9 +58,9 @@ coil = { module = "io.coil-kt:coil-compose", version = "2.7.0" }
accompanist-permissions = { module = "com.google.accompanist:accompanist-permissions", version.ref = "accompanist" }
accompanist-adaptive = { module = "com.google.accompanist:accompanist-adaptive", version.ref = "accompanist" }
# Navigation Compose
navigation-compose = { module = "androidx.navigation:navigation-compose", version = "2.8.1" }
navigation-compose = { module = "androidx.navigation:navigation-compose", version = "2.8.2" }
# Google Fonts
ui-text-google-fonts = { module = "androidx.compose.ui:ui-text-google-fonts", version = "1.7.2" }
ui-text-google-fonts = { module = "androidx.compose.ui:ui-text-google-fonts", version = "1.7.3" }
# Window
window = { module = "androidx.window:window", version = "1.3.0" }
# Constraint Layout Compose
Expand Down Expand Up @@ -99,13 +99,13 @@ room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
toolkit-preferences = { module = "com.github.prime-zs.toolkit:preferences", version.ref = "toolkit" }

# Analytics
firebase-analytics-ktx = { module = "com.google.firebase:firebase-analytics-ktx", version = "22.1.0" }
firebase-crashlytics-ktx = { module = "com.google.firebase:firebase-crashlytics-ktx", version = "19.1.0" }
firebase-analytics-ktx = { module = "com.google.firebase:firebase-analytics-ktx", version = "22.1.2" }
firebase-crashlytics-ktx = { module = "com.google.firebase:firebase-crashlytics-ktx", version = "19.2.0" }

# Google Play Services
play-app-update-ktx = { module = "com.google.android.play:app-update-ktx", version = "2.1.0" }
play-app-review-ktx = { module = "com.google.android.play:review-ktx", version = "2.0.1" }
google-billing-ktx = { module = "com.android.billingclient:billing-ktx", version = "7.0.0" }
google-billing-ktx = { module = "com.android.billingclient:billing-ktx", version = "7.1.1" }
play_feature_delivery = { module = "com.google.android.play:feature-delivery-ktx", version = "2.1.0" }

# ADS
Expand Down
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jul 19 10:22:34 IST 2023
#Tue Oct 15 09:08:44 IST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists

0 comments on commit 2bb68cc

Please sign in to comment.