Skip to content

Commit

Permalink
feat(android): clean up Andorid min osver (#13562)
Browse files Browse the repository at this point in the history
Co-authored-by: Hans Knöchel <hansemannn@users.noreply.github.com>
  • Loading branch information
m1ga and hansemannn committed Oct 7, 2022
1 parent 50814d7 commit 9202366
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 84 deletions.
21 changes: 0 additions & 21 deletions apidoc/Titanium/Android/Android.yml
Expand Up @@ -1655,7 +1655,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_CALL
summary: |
Expand All @@ -1668,7 +1667,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_EMAIL
summary: Notification category indicating an asynchronous bulk message (email).
Expand All @@ -1679,7 +1677,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_ERROR
summary: Notification category indicating an error in background operation or authentication status.
Expand All @@ -1690,7 +1687,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_EVENT
summary: Notification category indicating a calendar event.
Expand All @@ -1701,7 +1697,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_MESSAGE
summary: Notification category indicating an incoming direct message (SMS, instant message, etc.).
Expand All @@ -1712,7 +1707,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_PROGRESS
summary: Notification category indicating the progress of a long-running background operation.
Expand All @@ -1723,7 +1717,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_PROMO
summary: Notification category indicating a promotion or advertisement.
Expand All @@ -1734,7 +1727,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_RECOMMENDATION
summary: Notification category indicating a specific, timely recommendation for a single thing.
Expand All @@ -1745,7 +1737,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_SERVICE
summary: Notification category for a running background service.
Expand All @@ -1756,7 +1747,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_SOCIAL
summary: Notification category for a social network or sharing update.
Expand All @@ -1767,7 +1757,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_STATUS
summary: Notification category indicating ongoing information about device or contextual status.
Expand All @@ -1778,7 +1767,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: CATEGORY_TRANSPORT
summary: Notification category indicating media transport control for playback.
Expand All @@ -1789,7 +1777,6 @@ properties:
type: String
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: DEFAULT_ALL
summary: |
Expand Down Expand Up @@ -2091,7 +2078,6 @@ properties:
type: Number
permission: read-only
since: "3.6.0"
osver: {android: {min: "4.1"}}

- name: PRIORITY_HIGH
summary: Use for high priority notifications like real-time chat messages.
Expand All @@ -2102,7 +2088,6 @@ properties:
type: Number
permission: read-only
since: "3.6.0"
osver: {android: {min: "4.1"}}

- name: PRIORITY_DEFAULT
summary: Default priority if it does not fit into another priority category.
Expand All @@ -2113,7 +2098,6 @@ properties:
type: Number
permission: read-only
since: "3.6.0"
osver: {android: {min: "4.1"}}

- name: PRIORITY_LOW
summary: Use for low priority notifications like software updates.
Expand All @@ -2124,7 +2108,6 @@ properties:
type: Number
permission: read-only
since: "3.6.0"
osver: {android: {min: "4.1"}}

- name: PRIORITY_MIN
summary: Use for expired events.
Expand All @@ -2138,7 +2121,6 @@ properties:
type: Number
permission: read-only
since: "3.6.0"
osver: {android: {min: "4.1"}}

- name: VISIBILITY_PRIVATE
summary: Shows basic information about the notification.
Expand All @@ -2151,7 +2133,6 @@ properties:
type: Number
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: VISIBILITY_PUBLIC
summary: Shows the notification's full content on the lockscreen. This is the system default if visibility is left unspecified.
Expand All @@ -2162,7 +2143,6 @@ properties:
type: Number
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: VISIBILITY_SECRET
summary: Shows the most minimal information of the notification on the lockscreen.
Expand All @@ -2173,7 +2153,6 @@ properties:
type: Number
permission: read-only
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: TILE_STATE_UNAVAILABLE
summary: QuickSettings tile is unavailble.
Expand Down
20 changes: 8 additions & 12 deletions apidoc/Titanium/Android/Notification.yml
Expand Up @@ -153,7 +153,7 @@ methods:
type: Number

- name: progress
summary: Defines the progress value, between 0 and max.
summary: Defines the progress value, between 0 and max.
type: Number

- name: indeterminate
Expand All @@ -171,7 +171,7 @@ methods:
type: [Number, String]

- name: title
summary: Title of the action button
summary: Title of the action button
type: String

- name: intent
Expand All @@ -197,7 +197,6 @@ properties:
to make ranking and filtering decisions. This property only works for devices running Android 5.0 (API 21)
and greater.
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: channelId
summary: The channel id specified for the notification.
Expand Down Expand Up @@ -335,18 +334,17 @@ properties:
Android resources by ID.
type: [Number, String]
since: "4.2.0"

- name: color
summary: Accent color used behind icon.
description: |
Accent color of the circle used behind icon. The Icon will be stenciled in white on top of a
Accent color of the circle used behind icon. The Icon will be stenciled in white on top of a
cicle of the color set. For information about color values, see the "Colors" section of <Titanium.UI>.
See Android Reference for the [color](https://developer.android.com/reference/android/app/Notification.html#color) property.
type: String
since: "7.0.0"
osver: {android: {min: "5.0"}}


- name: ledARGB
summary: The color for the LED to blink.
type: Number
Expand All @@ -371,7 +369,6 @@ properties:
constants: Titanium.Android.PRIORITY_*
default: undefined but behaves as Titanium.Android.PRIORITY_DEFAULT
since: "3.6.0"
osver: {android: {min: "4.1"}}

- name: sound
summary: A URL to the sound to play.
Expand Down Expand Up @@ -469,14 +466,13 @@ properties:
constants: Titanium.Android.VISIBILITY_*
default: undefined but behaves as Titanium.Android.VISIBILITY_PUBLIC
since: "3.6.0"
osver: {android: {min: "5.0"}}

- name: wakeLock
summary: |
Will wake up the device for the given time (in milliseconds) when the notification is shown.
The application needs to also set the `android.permission.WAKE_LOCK` permission
in the Android manifest section of the `tiapp.xml` file.
``` xml
<ti:app>
<android>
Expand All @@ -489,7 +485,7 @@ properties:
type: wakeLockOptions
default: 0
since: "6.2.0"

- name: when
summary: The timestamp for the notification (defaults to the current time).
description: |
Expand Down

0 comments on commit 9202366

Please sign in to comment.