Giter Site home page Giter Site logo

iamcadis / mixdrinks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mixdrinks/mobile

0.0 0.0 0.0 7.12 MB

A Compose multiplatform (Android & iOS) client for mixdrinks.org

License: Apache License 2.0

Shell 0.11% Ruby 0.13% Kotlin 94.61% Swift 5.15%

mixdrinks's Introduction

MixDrinks app

The app is available on Google Play and App Store:

Before start any works on project

Warning Writing and running iOS-specific code for a simulated or real device requires macOS. This is an Apple limitation.

Check your environment has all requirements for Kotlin Multiplatform Mobile Development:

The environment can be checked by kdoctor

Before opening the project in Android Studio, use kdoctor to ensure your development environment is configured correctly. Install kdoctor via brew:

brew install kdoctor

The kdoctor tool will check your environment and provide a list of errors if something goes wrong:

Environment diagnose (to see all details, use -v option):
[✓] Operation System
[✓] Java
[✓] Android Studio
[✓] Xcode
[✓] Cocoapods

Conclusion:
  ✓ Your system is ready for Kotlin Multiplatform Mobile Development!

Codding environment preparation

Check you have installed Kotlin Multiplatform Mobile plugin

Project structure

To view the project structure use Project view.

The project has three modules:

shared

The module contains code that will be shared across all platforms.

App @Composable фукція знаходиться в shared/src/commonMain/kotlin/App.kt.

androidApp

The module contains code that will be used only on Android.

iosApp

The module contains code that will be used only on iOS. The module iosApp depends on the shared module as a CocoaPods dependency.

Run the app/project

Android

Chose the configuration androidApp -> Run

Or run by gradle command ./gradlew installDebug

iOS

Before run the mixdrinks project for ios, we highly recommend to run the Hello, World Xcode project. Just to be sure that your environment is ready for ios development.

Run ios mixdrinks app on simulator

Chose the configuration iosApp -> Run

Run ios mixdrinks app on real ios device

Before run the app on real ios device you need to prepare your environment:

  • Create an Apple ID
  • Register your iphone in Xcode

Change the TEAM_ID to your team id (can be found in apple.developer), in iosApp/Configuration/Config.xcconfig

Alternatively way to get team id, use kdoctor command kdoctor --team-ids. The command will produce the list of team ids from your system, choose the one you prefer.

Contributing

We are happy to accept small and large contributions, you can just make changes and create a pull, or you can check our issue tab and choose the one you like.

Troubleshooting

If you have any problems with the project, please check the following list:

Most popular problems, you can run ios app.

Usually happens after you make change is some ios specific files, like iosApp/Configuration/Config.xcconfig or iosApp/Info.plist

Close Android Studio or you idea. Than run the ./cleanup.sh. Now you can open the project again.

The resource files are not available in ios project

After you maker changes into resources into shared module, you need to run pod install in the iosApp folder.

mixdrinks's People

Contributors

vovastelmashchuk avatar renovate[bot] avatar yuradekhtiar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.