Code Monkey home page Code Monkey logo

sap-labs-france / ev-mobile Goto Github PK

View Code? Open in Web Editor NEW
53.0 11.0 70.0 62.63 MB

The Open e-Mobility Charging Station management mobile React-Native application (check also ev-server and ev-dashboard)

Home Page: https://open-e-mobility.io/

License: Apache License 2.0

JavaScript 1.56% Java 1.51% Objective-C 0.21% TypeScript 95.50% Starlark 0.05% Ruby 0.02% CMake 0.02% C++ 0.64% Objective-C++ 0.49%
e-mobility charge-point-operation mobility-operation

ev-mobile's Introduction

drawing

Open e-Mobility React-Native Mobile App

Summary

This application is the Electric Vehicle Charging Station (EVSE) mobile application for Android and iOS.

It's linked to the Open e-Mobility backend: https://github.com/sap-labs-france/ev-server

App Stores

Google Play

Apple Store

Contact the author Serge FABIANO

NPM and Cocoapods

The project now uses npm 8.x and cocoapods 1.11.2

Installation

  • Install NodeJS: https://nodejs.org/ (install the LTS version)
  • Install Java SE Development Kit 8
  • Install React Native: https://facebook.github.io/react-native/
    npm install -g react-native-cli
    
  • Install Android Studio: https://developer.android.com/studio/
    • Ensure Android SDK Platform 28 and Intel x86 Atom_64 System Image are checked in the SDK manager.
    • Windows:
      • Add user environment variable: ANDROID_HOME=C:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk
      • Add C:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk\platform-tools to user paths
    • OSX/*nix:
      • Add to your shell profile:
      export ANDROID_HOME=$HOME/Library/Android/sdk
      export PATH=$PATH:$ANDROID_HOME/emulator
      export PATH=$PATH:$ANDROID_HOME/tools
      export PATH=$PATH:$ANDROID_HOME/tools/bin
      export PATH=$PATH:$ANDROID_HOME/platform-tools
  • Install Xcode: https://developer.apple.com/xcode/
  • Clone this GitHub project
  • Go into the ev-mobile directory and run npm install or yarn install

NOTE:

choco install -y nodejs-lts jdk8 androidstudio
brew install node openjdk cocoapods react-native-cli watchman android-studio

Running the application on a virtual device

Open a terminal in the ev-mobile directory

  • Install CocoaPods on Mac OSX:

    npm run pod:install
  • Run on Android:

    npm run build:prepare
    npm run android
  • Run on iOS:

    npm run build:prepare
    npm run ios

License

This file and all other files in this repository are licensed under the Apache Software License, v.2 and copyrighted under the copyright in NOTICE file, except as noted otherwise in the LICENSE file.

Please note that the mobile application can contain other software which may be licensed under different licenses.

ev-mobile's People

Contributors

alixh avatar ccatsapdotcom avatar dependabot[bot] avatar jerome-benoit avatar lucasbrazi06 avatar mariansalceda avatar michalanthis avatar micloudie avatar ninjeneer avatar olivegerste avatar rmangin-fr avatar snowydvp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ev-mobile's Issues

Android > Prod: Cannot compile Android for Prod

Clone the project, npm install + build Android with "gradlew assembleRelease"and you get this compilation error:

> Task :react-native-charts-wrapper:compileReleaseJavaWithJavac FAILED
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/listener/RNOnChartGestureListener.java:3: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
                                 ^
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:5: error: package android.support.v4.content.res does not exist
import android.support.v4.content.res.ResourcesCompat;
                                     ^
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/listener/RNOnChartGestureListener.java:93: error: cannot find symbol
    @NonNull
     ^
  symbol:   class NonNull
  location: class RNOnChartGestureListener
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:25: error: cannot find symbol
    private Drawable backgroundLeft = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_left, null);
                                      ^
  symbol:   variable ResourcesCompat
  location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:26: error: cannot find symbol
    private Drawable background = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker, null);
                                  ^
  symbol:   variable ResourcesCompat
  location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:27: error: cannot find symbol
    private Drawable backgroundRight = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_right, null);
                                       ^
  symbol:   variable ResourcesCompat
  location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:29: error: cannot find symbol
    private Drawable backgroundTopLeft = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_top_left, null);
                                         ^
  symbol:   variable ResourcesCompat
  location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:30: error: cannot find symbol
    private Drawable backgroundTop = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_top, null);
                                     ^
  symbol:   variable ResourcesCompat
  location: class RNRectangleMarkerView
/Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/markers/RNRectangleMarkerView.java:31: error: cannot find symbol
    private Drawable backgroundTopRight = ResourcesCompat.getDrawable(getResources(), R.drawable.rectangle_marker_top_right, null);
                                          ^
  symbol:   variable ResourcesCompat
  location: class RNRectangleMarkerView
Note: /Users/i030367/Documents/charge-angels/production/mobile/ev-mobile/node_modules/react-native-charts-wrapper/android/src/main/java/com/github/wuxudong/rncharts/charts/CustomFormatter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
9 errors
3 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-charts-wrapper:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Could you please fix it?
Thanks.

Sessions > Start : Start a session by selecting your Car and Badge (and user for Admin)

  • Provide the list of Users (canListUsers) + PR
  • Provide the list of Badges (canListTags) + PR
  • Provide the list of Cars (canListCars) if Car component is active + PR
  • [Low Prio] Navigate from Cars to Users + PR
  • Check all the screens on iPad and adjust the style + PR
  • Create in the Connector details a view that will replace the current connector infos with
    • A User selection (only for admins) + PR
    • A Badges selection + PR
    • A Car selection + PR
  • Test the start of a transaction by passing these informations

Mobile App: Prod Build fails for Android

Go to the Android directory and type : gradlew assembleRelease
Let me know what is your outcome.
Moreover if I start the project from scratch (git clone, npm install...), it does not build anymore.

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.