1. setElevationActivePoint is changed to work withe the CLLocationCoordinate2D that allows to pass the selected point to the core and show the blue mark on the track in the correct place
2. initWithElevationInfo is removed from the PlacePagePreviewData because the elevation profile is a part of track now and the PP header is configured in the core
3. ElevationHeightPoint stores the coordinates for easily track marks creation
4. add PlacePageTrackData to the PlacePageDate
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This refactoring allows to split the data for the PP on 2 parts:
1. TrackRecordingInfo (dist, dur, acend, descend etc)
2. ElecationProfileData (only the points to draw)
Because the PP should be created only with the 1st one for the TrackRecordings (will be implemented later) and the PP shoul display all the info without the chart.
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
`emptyInfo` is used as an initial (zero) state during the recoding process starting to notify the info observers
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
The GetAddress is changed to the GetSecondarySubtitle because the 4th line in the header contains address for bookmarks or distance+duration for tracks
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
The date formatter initialization is resource-intensive and all unnecessary instantiation are replaced with the call to one default static formatter.
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
- The `CoreApi-Swift.h` is a file that should be generated by the xcode to opens the swift classes
to the objc
- Custom hardcoded `CoreApi-swift.h` blocks this feature and contains objc headers. It blocks the autogeneration and don't allow to use the swift and objc classes in the same framework. This is why the file is removed and all the file's content is moved to the 'CoreApi.h'.
- The `Framework.h` can be used only but the objc so it is removed from the 'CoreApi.h' and is imported only when it's necessary
- `Defines Module` is set to NO because it should be set to YES only after the first swift file is added to the framework. In other case the bridging file will not be generated
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
* [Android] Implemented OAuth2 flow with browser
Signed-off-by: S. Kozyr <s.trump@gmail.com>
* [Android] Small improvements
Signed-off-by: S. Kozyr <s.trump@gmail.com>
* Small changes according to PR comments.
Signed-off-by: S. Kozyr <s.trump@gmail.com>
---------
Signed-off-by: S. Kozyr <s.trump@gmail.com>
- add and implement @protocol RecentlyDeletedCategoriesManager
- move the bmmanager observing method to the @protocol BookmarksObservable to make manager mokable
- add RecentlyDeletedCategory class as a lightweight version of the `CategoryData` to pass to it the swift
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>