Giter Site home page Giter Site logo

devsaran / fyle-mobile-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fylein/fyle-mobile-app

1.0 0.0 0.0 35.31 MB

New version of Fyle mobile app

License: MIT License

Shell 0.02% JavaScript 0.47% Ruby 0.06% Java 0.05% TypeScript 67.17% CSS 0.09% Swift 0.16% HTML 21.55% SCSS 10.44%

fyle-mobile-app's Introduction

fyle-mobile-app

Node version

Please install node v14.17.2 or above via nvm.

How to run this locally?

  • Install ionic cli
  • npm install
  • Add the environment files corresponding to the build you want in the environment folder
  • ionic serve -c env_name

IMPORTANT

before making any changes

  • go to .git/hooks
  • run in the shell - chmod +x pre-commit
  • Note: It is to prevent keys from accidentally leaking.

For setting environment variables

  • Ping mobile app team for environment files
  • Add them inside the environments folder
  • Note: Do not make any changes to the environment.ts file - this is a template folder for creating configurations.

For creating pull requests

  • Ping mobile app team for write access to the repository

For running app directly in android device for staging

  • ionic capacitor run android -l --external --configuration=staging It will open android studio, let it build index file and Gradle build for sometime Then check that studio recognized the right device in the top bar. Press the run button. After every change, you make in the src directory. It will automatically build the app on the device.

For running app directly in ios device for staging

  • Add .env file to project (ping mobile app team for the file)
  • Install Xcode from App store
  • run ionic build --staging
  • npx cap sync
  • npx cap open ios
  • In Xcode, select the connected device from the top bar and click on run button.

Push Notifications

iOS

  • Add this line ios/App/Podfile file (open via code editor, not xcode)
    • (After this line -> # Add your Pods here)
      • pod 'FirebaseCore'
      • pod 'Firebase/Messaging'
  • Run this from terminal
    • npx cap update ios
  • Add these lines ios/App/App/AppDelegate.swift file
    • (After this line -> import Capacitor)
      • import FirebaseCore
      • import FirebaseInstanceID
      • import FirebaseMessaging
    • FirebaseApp.configure() (After this line -> // Override point for customization after application launch.)
    • Update the application_ function after #if USE_PUSH as described below
      func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
            Messaging.messaging().apnsToken = deviceToken
            InstanceID.instanceID().instanceID { (result, error) in
                if let error = error {
                    NotificationCenter.default.post(name: Notification.Name(CAPNotifications.DidFailToRegisterForRemoteNotificationsWithError.name()), object: error)
                } else if let result = result {
                    NotificationCenter.default.post(name: Notification.Name(CAPNotifications.DidRegisterForRemoteNotificationsWithDeviceToken.name()), object: result.token)
                }
            }
        }

Running Appflow workflow manually on a private branch

  • Click on Actions Tab
  • From Workflows List, Select Manual Workflow - Appflow
  • On the right hand side you can see the list of workflow run.
  • In the list view you can see a Run Workflow button. Click on that button
  • Select the branch on which you want to run the workflow from the dropdown available for Use workflow from
  • Click on Run Workflow
  • This will now run the workflow on your private branch and the diawi apk link and ipa links will be shared on slack

Troubleshooting

Some common issues and how to fix them

Error: Cannot GET / on running the app locally in browser

This happens because some packages listed in package.json are not installed locally. Delete node_modules and run npm i to fix this issue.

fyle-mobile-app's People

Contributors

dimple16 avatar yksolanki9 avatar julias0 avatar iamtarun1993 avatar iravisankar avatar tarunkumarfyle avatar siddharth0-0 avatar madhavmansuriya40 avatar saitejasfyle avatar sandy-fyle avatar pradeep8093 avatar lakshmisuhas1996 avatar aditya-shrivastav avatar omkarj13 avatar shishirams222 avatar abhishek1234321 avatar code0987 avatar jayfyle avatar dependabot[bot] avatar sowmyafyle avatar hlkavya0213 avatar mvaishnavi avatar ajinkya2000 avatar snarayanank2 avatar modernwarfareuplink avatar sanyem avatar kulsekar4 avatar jatzz10 avatar chethan-fyle avatar chetanya-shrimali avatar

Stargazers

Roman 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.