-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new plugin for showing AIS positions of vessels #21556
Open
f-n
wants to merge
100
commits into
osmandapp:master
Choose a base branch
from
f-n:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 98 commits
Commits
Show all changes
100 commits
Select commit
Hold shift + click to select a range
ddb8fab
new plugin: AIS vessel tracker, initial version
f-n f31f333
new plugin: AIS vessel tracker, initial version
f-n 2a4eb97
insert some AIS objects for test purposes
f-n 36ea38a
Merge branch 'osmandapp:master' into master
f-n 984114f
Merge branch 'master' of https://github.com/f-n/OsmAnd
f-n b881cae
added syntax check for IP address and port number in settings dialog
f-n 4fc4199
display distance and bearing in context menu
f-n 57b9064
add 2 settings: AIS_OBJ_LOST_TIMEOUT and AIS_SHIP_LOST_TIMEOUT
f-n 705bbd4
ship destination consisting of "@" is considered as invalid
f-n 4afa720
improved preference setup dialog for network setting: show current va…
f-n 32ebd90
new class to calculate CPA nd TCPA (not included into GUI yet)
f-n 9b95c9d
update of CPA class after some testing (not included into GUI yet)
f-n c61a34e
use CPA data request in AIS object context menu to display CPA, TCPA
f-n c9eb718
some code refactoring
f-n 406a2c8
additional preferences regarding CPA (not used in the application yet)
f-n 93e4a5f
code refactoring regarding maxObjectAgeInMinutes, vesselLostTimeoutIn…
f-n a2fe7b4
add CPA check into vessel visualisation
f-n e70e8a2
adjust layout of context menu entries
f-n 6006050
add disclaimer in the plugin description
f-n ad66408
address some concurrency issue in AIS object list
f-n 2a435cb
use getCurrentLocation() instead of getLocation() for CPA calculations
f-n 62131ba
add TCP connection reset after mapActivityResume in special situations
f-n a00ce91
added icon in the top area of the context menu
f-n 460b7cb
do not show negative CPA times in context menu
f-n 41804f5
change bitmap+color handling
f-n c3081a2
adjust logic for bitmap/color selection
f-n e662ce4
merge
f-n a8a4d77
adjustments after merge
f-n bd97816
Merge branch 'osmandapp:master' into master
f-n 41cb344
merge
f-n 82c727c
restart network listeners in cast of protocol change (UDP/TCP)
f-n 932e4c2
increase max number of AIS objects to 200
f-n 57f1d43
Merge branch 'osmandapp:master' into master
f-n 831d16e
merge
f-n d2d355f
Merge branch 'osmandapp:master' into master
f-n 821b7e8
Merge branch 'osmandapp:master' into master
f-n 354e98a
Merge branch 'osmandapp:master' into master
f-n 351f5fe
Merge branch 'osmandapp:master' into master
f-n a517a93
Merge branch 'osmandapp:master' into master
f-n 0ad07ed
Merge branch 'osmandapp:master' into master
f-n 6d869a8
Merge branch 'osmandapp:master' into master
f-n 2217579
Merge branch 'osmandapp:master' into master
f-n acb5931
Merge branch 'osmandapp:master' into master
f-n 862e7fe
Merge branch 'osmandapp:master' into master
f-n 2a14544
adjusted CPA warning indication: add new condition: examine time when…
f-n bfb7b7b
change the available set for configurable CPA warning distances (now …
f-n 8ba1e6e
Merge remote-tracking branch 'origin/master'
f-n 5528bc8
fixed wrong visualisation for AIS message type 18
f-n ef3b284
adjusted/extended object description in the context menu
f-n 5751e5a
adjust visualisation of moored vessels (vessels at rest): draw a circ…
f-n c8d7277
added two new AIS object types: AIS_VESSEL_AUTHORITIES and AIS_VESSE…
f-n 0fa48ed
correct wrong color definition in AisObject.selectColor()
f-n b91c88d
allow status change from VALID to INVALID for some AIS attributes
f-n 3440de8
created new AisObjectType: AIS_VESSEL_OTHER with individual color
f-n 26a8e7c
special handling for objectClass = AIS_INVALID: might be moveable
f-n 6a75d68
new plugin: AIS vessel tracker, initial version
f-n 9bbd7fa
new plugin: AIS vessel tracker, initial version
f-n 75f91e1
insert some AIS objects for test purposes
f-n 84aa2eb
added syntax check for IP address and port number in settings dialog
f-n cfa015f
display distance and bearing in context menu
f-n a439e0b
add 2 settings: AIS_OBJ_LOST_TIMEOUT and AIS_SHIP_LOST_TIMEOUT
f-n 8955967
ship destination consisting of "@" is considered as invalid
f-n 78ceb14
improved preference setup dialog for network setting: show current va…
f-n 7549fbe
new class to calculate CPA nd TCPA (not included into GUI yet)
f-n d12c0c5
update of CPA class after some testing (not included into GUI yet)
f-n 3362c2a
use CPA data request in AIS object context menu to display CPA, TCPA
f-n 7660bbb
some code refactoring
f-n fa21385
additional preferences regarding CPA (not used in the application yet)
f-n 92eb0dc
code refactoring regarding maxObjectAgeInMinutes, vesselLostTimeoutIn…
f-n 5ac23cf
add CPA check into vessel visualisation
f-n 68f8d80
adjust layout of context menu entries
f-n 1ab832e
add disclaimer in the plugin description
f-n 8a65f7e
address some concurrency issue in AIS object list
f-n 823aafc
use getCurrentLocation() instead of getLocation() for CPA calculations
f-n 173df3e
add TCP connection reset after mapActivityResume in special situations
f-n 562da86
added icon in the top area of the context menu
f-n 8467b79
do not show negative CPA times in context menu
f-n abde360
change bitmap+color handling
f-n 30ca7cc
adjust logic for bitmap/color selection
f-n 0e72e91
adjustments after merge
f-n a9da155
restart network listeners in cast of protocol change (UDP/TCP)
f-n 0cf6b9f
increase max number of AIS objects to 200
f-n 06586cb
adjusted CPA warning indication: add new condition: examine time when…
f-n 457d61b
change the available set for configurable CPA warning distances (now …
f-n 0f6716d
fixed wrong visualisation for AIS message type 18
f-n f1b03c5
adjusted/extended object description in the context menu
f-n 39978be
adjust visualisation of moored vessels (vessels at rest): draw a circ…
f-n 46fb122
added two new AIS object types: AIS_VESSEL_AUTHORITIES and AIS_VESSE…
f-n 1c3cd32
correct wrong color definition in AisObject.selectColor()
f-n dcd9967
allow status change from VALID to INVALID for some AIS attributes
f-n e5dcee3
created new AisObjectType: AIS_VESSEL_OTHER with individual color
f-n e310ec1
special handling for objectClass = AIS_INVALID: might be moveable
f-n acc6095
after git rebase
f-n ea02688
Merge branch 'osmandapp:master' into master
f-n 9187499
Merge branch 'osmandapp:master' into master
f-n 39a8127
Merge branch 'osmandapp:master' into master
f-n 284249d
Merge branch 'osmandapp:master' into master
f-n a323d98
Merge branch 'osmandapp:master' into master
f-n 3461633
Merge branch 'master' into ais
Chumva af0aba7
Remove unnecessary changes
Chumva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,18 +39,13 @@ android { | |
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
coreLibraryDesugaringEnabled true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this plugin have issues with desugaring or kotlinOptions? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not aware of such issues, please feel free to adjust. |
||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
|
||
defaultConfig { | ||
minSdkVersion 24 | ||
versionCode 5000 | ||
versionCode 4900 | ||
versionCode System.getenv("APK_NUMBER_VERSION") ? System.getenv("APK_NUMBER_VERSION").toInteger() : versionCode | ||
versionName "5.0.0" | ||
versionName "4.9.0" | ||
versionName System.getenv("APK_VERSION")? System.getenv("APK_VERSION").toString(): versionName | ||
versionName System.getenv("APK_VERSION_SUFFIX")? versionName + System.getenv("APK_VERSION_SUFFIX").toString(): versionName | ||
} | ||
|
@@ -268,5 +263,6 @@ dependencies { | |
|
||
amazonFreeImplementation "com.amazon:in-app-purchasing:2.0.76@jar" | ||
amazonFullImplementation "com.amazon:in-app-purchasing:2.0.76@jar" | ||
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.3") | ||
|
||
implementation 'net.sf.marineapi:marineapi:0.12.0' | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="?attr/list_background_color" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:orientation="vertical"> | ||
|
||
<com.google.android.material.appbar.AppBarLayout | ||
android:id="@+id/appbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<include layout="@layout/global_preference_toolbar" /> | ||
|
||
</com.google.android.material.appbar.AppBarLayout> | ||
|
||
<ScrollView | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" | ||
android:fillViewport="true"> | ||
|
||
<net.osmand.plus.widgets.FlowLayout | ||
android:id="@+id/colors_palette" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginVertical="@dimen/content_padding" | ||
android:layout_marginHorizontal="@dimen/content_padding_round_medium" | ||
app:horizontalItemsSpacing="@dimen/content_padding_medium" | ||
app:verticalItemsSpacing="@dimen/content_padding_small" /> | ||
|
||
</ScrollView> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:orientation="vertical"> | ||
|
||
<com.google.android.material.appbar.AppBarLayout | ||
android:id="@+id/appbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/list_background_color"> | ||
|
||
<androidx.appcompat.widget.Toolbar | ||
android:id="@+id/toolbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/toolbar_height" /> | ||
|
||
</com.google.android.material.appbar.AppBarLayout> | ||
|
||
<FrameLayout | ||
android:id="@+id/container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<ScrollView | ||
android:id="@+id/scroll_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:overScrollMode="never" | ||
android:scrollbars="none"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/list_background_color" | ||
android:orientation="vertical"> | ||
|
||
<androidx.appcompat.widget.AppCompatImageView | ||
android:layout_width="@dimen/setting_list_item_large_height" | ||
android:layout_height="@dimen/setting_list_item_large_height" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginBottom="@dimen/horizontal_divider_height" | ||
android:src="@drawable/ic_action_gift_colored" /> | ||
|
||
<net.osmand.plus.widgets.TextViewEx | ||
android:id="@+id/title" | ||
style="@style/TitleStyle.Medium" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="@dimen/content_padding" | ||
android:gravity="center" | ||
android:textColor="?android:textColorPrimary" | ||
android:textSize="@dimen/default_title_line_height" | ||
tools:text="@string/tripltek_promo" /> | ||
|
||
<net.osmand.plus.widgets.TextViewEx | ||
android:id="@+id/description" | ||
style="@style/TitleStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="@dimen/content_padding" | ||
android:layout_marginBottom="@dimen/content_padding" | ||
android:gravity="center" | ||
android:textColor="?android:textColorPrimary" | ||
tools:text="@string/tripltek_promo_description" /> | ||
|
||
<LinearLayout | ||
android:id="@+id/items_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
android:paddingBottom="@dimen/content_padding_extra_large" | ||
tools:listitem="@layout/purchase_dialog_list_item" /> | ||
|
||
</LinearLayout> | ||
|
||
</ScrollView> | ||
|
||
<include layout="@layout/control_bottom_buttons" /> | ||
|
||
</FrameLayout> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/list_background_color" | ||
android:gravity="center_vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:minHeight="@dimen/bottom_sheet_selected_item_title_height" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:id="@+id/selectable_list_item" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" | ||
android:paddingHorizontal="@dimen/content_padding" | ||
android:orientation="horizontal"> | ||
|
||
<net.osmand.plus.widgets.TextViewEx | ||
android:id="@+id/title" | ||
style="@style/TitleStyle" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:layout_marginEnd="@dimen/content_padding" | ||
android:layout_weight="1" | ||
android:ellipsize="end" | ||
android:textColor="?android:textColorPrimary" | ||
tools:text="Example of title" /> | ||
|
||
<include layout="@layout/item_key_assignment_button" /> | ||
|
||
</LinearLayout> | ||
|
||
<View | ||
android:id="@+id/bottom_divider" | ||
android:layout_width="match_parent" | ||
android:layout_height="1dp" | ||
android:layout_marginStart="@dimen/content_padding" | ||
android:background="?attr/divider_color_basic" /> | ||
|
||
</LinearLayout> | ||
|
||
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="font_roboto_regular">ui-fonts/Roboto-Regular.ttf</string> | ||
<string name="font_roboto_medium">ui-fonts/Roboto-Medium.ttf</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is unnecessary & can be removed