martinmoec / Toodeloo-app-3910

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample app for the Toodeloo-3910 project

Requirements

  • Node.js
  • Watchman
  • React Native CLI
  • .NET Core SDK >= 2.0.0
  • XCode ( for iOS )

Setup

After cloning the respository cd into project root

  • yarn
  • .paket/paket.exe init
  • .paket/paket.exe install
  • cd src
  • dotnet restore

Running

Set server endpoint in ./src/Constants.fs

Start fable watch-server (enables auto-updating, optional)

From project root

  • cd src
  • dotnet fable yarn-watch

Enables auto-updating when the F# project in src/ is altered. Output is built to out/.

React-native

In project root

  • iOS simulator: react-native run-ios
  • Android: react-native run-android

Error handling

iOS

  • No bundle URL present :
    • Try cleaning build-output, kill metro bundler and rebuild.
    • rm -rf ios/build/; kill $(lsof -t -i:8081); react-native run-ios
  • Entry, ":CFBundleIdentifier", Does Not Exist and similar
    • open ios/ReactNativeApp.xcodeproj in XCode
    • File -> Project Settings... -> Advanced
      • Set build location to Custom
      • Replace Build/.. with build/Build/... for the Products and Intermediates entries
      • E.g
        • Products: build/Build/Products
        • Intermediates: build/Build/Intermediates.noindex

Android

  • Licenses not accepted
    • run <Android folder>/sdk/tools/bin/sdkmanager --licenses and accept all

About


Languages

Language:F# 63.6%Language:Objective-C 18.6%Language:Python 8.0%Language:Java 6.5%Language:JavaScript 3.4%