/WeeFood

Primary LanguageKotlin

WeeFood

Basis


UI


Dependendy Injection


Database / Remote


Tests

All test are shared between iOS and Android. In the .run directory are 2 configurations. These configurations run all Test (separate for iOS and Android) at once.

Run iOS App

To run the iOS app you need to foloww these Steps:

  1. rebuild the app in Android Studio [Taskbar in AS -> Build -> Rebuild Project]
  2. After that you need Xcode. In the App Folder is a iosWeeFood Folder. From there you can open the workspace-file in xcode.
  3. run the App with the Start Button on top

Issues when building the iOS app

In Case you never run a app in XCode there might be some issues. For some of them i have found a solution. At first: Some Solutions must run twice. And sometimes you need to rebuild the app in Android Studio again.

No Gradle Permission

  1. open the Terminal in root directory from the app
  2. run: chmod +x gradlew to give full permission

gradlew wrapper is missing

  1. open the Terminal in root directory from the app
  2. run: gradle; gradle wrapper

if gradle is missing: install gradle via terminal run: brew install gradle

shared or other modules are missing

  1. open the Terminal in iosWeeFood directory from the app
  2. run: pod deintegrate; pod install to clean the pod and reinstall it

SQL-Delight problems

  1. go in xcode to the root project
  2. Build Settings -> Linking -> Other Linker Flag
  3. Set a new variable -lsqlite3

no command line tool set

  1. go in xcode to settings -> locations
  2. set a xcode version in the command line tool sections

Specs

  • Android Studio Arctic Fox 2020.3.1
  • Xcode 12.5.1
  • Koin
  • Jetpack Compose
  • Kotlin Multiplatform Mobile
  • Swift UI