Site icon Android Tutorial Online

A Kotlin Multiplatform Mobile simple music streaming app

Kicks

Kicks is a simple music streaming app built with Kotlin Multiplatform Mobile and Compose Multiplatform

Platforms 

How does it work?

It streams free audio medias; from Pixabay. The app uses expect/actual to delegate the AudioPlayer to both platforms using AVPlayer on iOS and Media3 on Android.

📱 Sneak peak

Screenshots

▶️ Android

kicks_vid.mp4

https://user-images.githubusercontent.com/61739400/234009722-6f65161f-950b-4479-8f65-0e8934593bed.mp4

▶️ iOS

kicks_ios.rc.mp4

https://user-images.githubusercontent.com/61739400/234008361-54ef31d7-e492-445c-92f4-22e723d6d2f8.mp4


Built with

TODOs

Currently, this is a one screen app, showing playlist and controls. More work to be done.

✅ Completed

🚧 To be done

Setting up project 👨🏻‍💻

Project structure

This Compose Multiplatform project includes three modules:

shared

This is a Kotlin module that contains the logic common for both Android and iOS applications, the code you share between platforms. This shared module is also where you write your Compose Multiplatform code. In shared/src/commonMain/kotlin/App.kt, you can find the shared root @Composable function for your app. It uses Gradle as the build system. You can add dependencies and change settings in shared/build.gradle.kts. The shared module builds into an Android library and an iOS framework.

android

This is a Kotlin module that builds into an Android application. It uses Gradle as the build system. The androidApp module depends on and uses the shared module as a regular Android library.

ios

This is an Xcode project that builds into an iOS application. It depends on and uses the shared module as a CocoaPods dependency.


Contribute

Feel free to fork and open a pull request.

Acknowledgements

License

Copyright 2023 Ayodele Kehinde

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

GitHub

View Github

Exit mobile version