Giter Club home page Giter Club logo

gcps's Introduction

Global Cat Positioning System

Developer:

  • DO NOT RUN flutter upgrade unless you are prepared to fix the resulting problems.

  • DO NOT RUN flutter pub upgrade unless you are prepared to fix the resulting problems.

  • Use Android Studio to run the app on an Android device.

TODO

  • distance tool; start, stop, haversine!

  • show lat and long

  • usable ui for gyroscopes

  • app icon

  • battery status

  • activity, healthkit stuff

  • only attempt push when wifi or data available

  • catsnaps!

  • settings

    • push every n
    • push batch size n
    • desired accuracy
  • radio context information

  • offline map?

  • fitness features

    • lap recording
    • distance, pace recording

Development

  1. Connect Android device.

  2. Go to Settings > Connected Devices > USB Preferences: File Transfer mode.

  3. Make sure Settings > Developer Setting > USB Debug is enabled.

> flutter devices
3 connected devices:

moto g power (mobile) • ZY22BK96TD • android-arm64  • Android 11 (API 30)
Linux (desktop)       • linux      • linux-x64      • Linux
Chrome (web)          • chrome     • web-javascript • Google Chrome 90.0.4430.212
flutter run -d ZY22BK96TD

ℹ️ If all of this fails to get your device to show up in the output of flutter devices, then maybe try sleeping the computer while the devices is plugged in, then re-awake it. It worked once for me.

Flutter console

p - toggle printing layout borders
r - hot reload

Set up your Android device to sideload the debug APK

Enabling USB Debugging on an Android Device

On the device, go to Settings > About <device>.
Tap the Build number seven times to make Settings > Developer options available.
Then enable the USB Debugging option. Tip: You might also want to enable the Stay awake option, to prevent your Android device from sleeping while plugged into the USB port.

https://www.google.com/search?channel=fs&q=android+enable+usb+debugging

⚠️ Android Need to set USB Preferences > Use USB For = PTP

Problems/+Solutions


Problem

> flutter run -d ZY22BK96TD                                                                                                                                                                                                                                                       
> Launching lib/main.dart on moto g power in debug mode...                                                                                                                                                                                                                          
>                                                                                                                                                                                                                                                                                   
>                                                                                                                                                                                                                                                                                   FAILURE: Build failed with an exception.                                                                                                                                                                                                                                          
>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
* What went wrong:                                                                                                                                                                                                                                                                
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find any matches for com.transistorsoft:tslocationmanager:+ as no versions of com.transistorsoft:tslocationmanager are available.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/transistorsoft/tslocationmanager/maven-metadata.xml
- https://jcenter.bintray.com/com/transistorsoft/tslocationmanager/maven-metadata.xml
- https://storage.googleapis.com/download.flutter.io/com/transistorsoft/tslocationmanager/maven-metadata.xml
- file:/home/ia/dev/rotblauer/flutter-gcps/android/app/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml
Required by:
project :app > project :flutter_background_geolocation
> Could not find any matches for com.transistorsoft:tsbackgroundfetch:+ as no versions of com.transistorsoft:tsbackgroundfetch are available.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://jcenter.bintray.com/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://storage.googleapis.com/download.flutter.io/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- file:/home/ia/dev/rotblauer/flutter-gcps/android/app/libs/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
Required by:
project :app > project :background_fetch

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s

Solution

Background location library required this to happen:

https://github.com/transistorsoft/flutter_background_geolocation/blob/master/help/INSTALL-ANDROID.md#androidbuildgradle


gcps's People

Contributors

whilei avatar meowsbits avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  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.