[android] Fix lint warnings for intent-filters #3595
Labels
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps-tmp#3595
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "rt-android-intent-filter-warnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
All the
<data>
elements contained within the same<intent-filter>
element contribute to the same filter. So, for example, the following filter specification,is equivalent to this one:
https://developer.android.com/guide/topics/manifest/data-element
Signed-off-by: Roman Tsisyk roman@tsisyk.com
Это нам не надо?
If several hosts can be combined, then we can merge omaps.app with ge0.me. Just leave a comment for ge0.me that it's a legacy from maps.me.
Are there any shortened OSM URLs we also should handle in a similar way?
Is /search really needed? Should "/" also match /search?
Это были какие-то рекламные дип линки типа mapsme://lead?some=params, нам это не надо.
OK, I will merge them together.
Угу, мусор какой-то.
Yeah, they have a URL shortener, but we don't support it:
https://osm.org/go/2EE6hs--
.I added this variant to the list: organicmaps/organicmaps#475
The current rule catches
https://www.openstreetmap.org/#map=19/33.97896/50.68466
andhttps://www.openstreetmap.org/search?query=test#map=19/33.97896/50.68419
. Probably/search
is not really needed.The path part of a URI which must begin with a /. The path attribute specifies a complete path that is matched against the complete path in an Intent object. The pathPrefix attribute specifies a partial path that is matched against only the initial part of the path in the Intent object. The pathPattern attribute specifies a complete path that is matched against the complete path in the Intent object, but it can contain the following wildcards:
Because '' is used as an escape character when the string is read from XML (before it is parsed as a pattern), you will need to double-escape: For example, a literal '' would be written as "\" and a literal '' would be written as "\\". This is basically the same as what you would need to write if constructing the string in Java code.
For more information on these three types of patterns, see the descriptions of PATTERN_LITERAL, PATTERN_PREFIX, and PATTERN_SIMPLE_GLOB in the PatternMatcher class.
These attributes are meaningful only if the scheme and host attributes are also specified for the filter.
https://developer.android.com/guide/topics/manifest/data-element
Merged.
nit: A action=android.intent.action.SEND нельзя объединить с action=android.intent.action.VIEW выше?
@ -94,8 +85,9 @@
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
Еслт эта хрень не пройдёт autoVerify (а она не пройдёт), тогда из-за этого остальные хосты тоже не будут считаться верифицированными? Проверь, пожалуйста. Если я прав, то надо попробовать оставить отдельным блоком без autoVerify. А если и там не заработает, тогда придётся выпилить, чтобы не жертвовать своим autoVerify.
@ -94,8 +85,9 @@
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
Я просто верну взад как было. Спасибо за вредные советы.
Я бы не рисковал.