Skip to content

Commit fbfc581

Browse files
committed
updates for 5.0 release
1 parent 698c6d7 commit fbfc581

File tree

4 files changed

+805
-2029
lines changed

4 files changed

+805
-2029
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ allprojects {
3232
}
3333
}
3434
dependencies {
35-
implementation 'com.github.joypixels:emoji-toolkit-android:4.5.0'
35+
implementation 'com.github.joypixels:emoji-toolkit-android:5.0.0'
3636
}
3737
```
3838
and in your manifest add:

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
The following properties are available in the Swift/iOS version of the JoyPixels library:
66

7-
- `emojiVersion` (str) - Used only to direct CDN path. This is a 2-digit version (e.g. '3.1'). Not recommended for usage below 3.0.0.
7+
- `emojiVersion` (str) - Used only to direct CDN path. This is a 2-digit version (e.g. '5.0'). Not recommended for usage below 3.0.0.
88
- `emojiDownloadSize` (enum) **Default: `128`** - Used on to direct CDN path for non-sprite PNG usage to determine the size of the emoji image downloaded. Available options are '32', '64', and '128'.
99
- `imagePathPNG` (str) Defaults to CDN (jsdelivr) path.
1010
- `greedyMatch` (bool) **Default: `false`** - When `true`, matches non-fully-qualified Unicode values.

tools/src/main/java/com/joypixels/tools/Client.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public class Client {
3131
private boolean greedyMatch = false; // when true, matches non-fully-qualified Unicode values
3232

3333
private String imagePathPNG = "https://cdn.jsdelivr.net/joypixels/assets/";
34-
private String emojiVersion = "4.5";
34+
private String emojiVersion = "5.0";
3535
private String emojiDownloadSize = "128";
3636

37-
private String unicodeRegexp = "(?:[\\x{1F3F3}|\\x{1F3F4}]\\x{FE0F}?\\x{200D}?[\\x{1F308}|\\x{2620}]\\x{FE0F}?)|(?:\\x{1F441}\\x{FE0F}?\\x{200D}?\\x{1F5E8}\\x{FE0F}?)|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}\\x{2764}\\x{fe0f}?\\x{200d}[\\x{1f48b}\\x{200d}]*[\\x{1f468}|\\x{1f469}])|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f466}|\\x{1f467}]\\x{200d}[\\x{1f466}|\\x{1f467}])|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f466}|\\x{1f467}]\\x{200d}[\\x{1f466}|\\x{1f467}])|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f466}|\\x{1f467}])|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f466}|\\x{1f467}])|(?:[\\x{1F9B8}|\\x{1F9B9}]+[\\x{1F3FB}-\\x{1F3FF}]?\\x{200D}[\\x{2640}-\\x{2642}]?\\x{FE0F}?)|(?:[\\x{1F468}|\\x{1F469}]+[\\x{1F3FB}-\\x{1F3FF}]?\\x{200D}[\\x{1F9B0}-\\x{1F9B3}]+\\x{FE0F}?)|[\\x{0023}-\\x{0039}]\\x{FE0F}?\\x{20e3}|(?:\\x{1F3F4}[\\x{E0060}-\\x{E00FF}]{1,6})|[\\x{1F1E0}-\\x{1F1FF}]{2}|(?:[\\x{1F468}|\\x{1F469}]\\x{FE0F}?[\\x{1F3FB}-\\x{1F3FF}]?\\x{200D}?[\\x{2695}|\\x{2696}|\\x{2708}|\\x{1F4BB}|\\x{1F4BC}|\\x{1F527}|\\x{1F52C}|\\x{1F680}|\\x{1F692}|\\x{1F33E}|\\x{1F3EB}|\\x{1F3EC}|\\x{1f373}|\\x{1f393}|\\x{1f3a4}|\\x{1f3ed}|\\x{1f3a8}]\\x{FE0F}?)|[\\x{1F468}-\\x{1F469}\\x{1F9D0}-\\x{1F9DF}][\\x{1F3FA}-\\x{1F3FF}]?\\x{200D}?[\\x{2640}\\x{2642}\\x{2695}\\x{2696}\\x{2708}]?\\x{FE0F}?|(?:[\\x{1F9B5}|\\x{1F9B6}]+[\\x{1F3FB}-\\x{1F3FF}]+)|(?:[\\x{1f46e}\\x{1F468}\\x{1F469}\\x{1f575}\\x{1f471}-\\x{1f487}\\x{1F645}-\\x{1F64E}\\x{1F926}\\x{1F937}]|[\\x{1F460}-\\x{1F482}\\x{1F3C3}-\\x{1F3CC}\\x{26F9}\\x{1F486}\\x{1F487}\\x{1F6A3}-\\x{1F6B6}\\x{1F938}-\\x{1F93E}]|\\x{1F46F})\\x{FE0F}?[\\x{1F3FA}-\\x{1F3FF}]?\\x{200D}?[\\x{2640}\\x{2642}]?\\x{FE0F}?|(?:[\\x{26F9}\\x{261D}\\x{270A}-\\x{270D}\\x{1F385}-\\x{1F3CC}\\x{1F442}-\\x{1F4AA}\\x{1F574}-\\x{1F596}\\x{1F645}-\\x{1F64F}\\x{1F6A3}-\\x{1F6CC}\\x{1F918}-\\x{1F93E}]\\x{FE0F}?[\\x{1F3FA}-\\x{1F3FF}])|(?:[\\x{2194}-\\x{2199}\\x{21a9}-\\x{21aa}]\\x{FE0F}?|[\\x{0023}-\\x{002a}]|[\\x{3030}\\x{303d}]\\x{FE0F}?|(?:[\\x{1F170}-\\x{1F171}]|[\\x{1F17E}-\\x{1F17F}]|\\x{1F18E}|[\\x{1F191}-\\x{1F19A}]|[\\x{1F1E6}-\\x{1F1FF}])\\x{FE0F}?|\\x{24c2}\\x{FE0F}?|[\\x{3297}\\x{3299}]\\x{FE0F}?|(?:[\\x{1F201}-\\x{1F202}]|\\x{1F21A}|\\x{1F22F}|[\\x{1F232}-\\x{1F23A}]|[\\x{1F250}-\\x{1F251}])\\x{FE0F}?|[\\x{203c}\\x{2049}]\\x{FE0F}?|[\\x{25aa}-\\x{25ab}\\x{25b6}\\x{25c0}\\x{25fb}-\\x{25fe}]\\x{FE0F}?|[\\x{00a9}\\x{00ae}]\\x{FE0F}?|[\\x{2122}\\x{2139}]\\x{FE0F}?|\\x{1F004}\\x{FE0F}?|[\\x{2b05}-\\x{2b07}\\x{2b1b}-\\x{2b1c}\\x{2b50}\\x{2b55}]\\x{FE0F}?|[\\x{231a}-\\x{231b}\\x{2328}\\x{23cf}\\x{23e9}-\\x{23f3}\\x{23f8}-\\x{23fa}]\\x{FE0F}?|\\x{1F0CF}|[\\x{2934}\\x{2935}]\\x{FE0F}?)|[\\x{2700}-\\x{27bf}]\\x{FE0F}?|[\\x{1F000}-\\x{1F6FF}\\x{1F900}-\\x{1F9FF}]\\x{FE0F}?|[\\x{2600}-\\x{26ff}]\\x{FE0F}?|(?:[\\x{1F466}-\\x{1F469}]+\\x{FE0F}?[\\x{1F3FB}-\\x{1F3FF}]?)|[\\x{0030}-\\x{0039}]\\x{FE0F}";
37+
private String unicodeRegexp = "(?:\\x{1f9d1}[\\x{1f3fb}-\\x{1f3ff}]?\\x{200d}\\x{1f91d}\\x{200d}\\x{1f9d1}[\\x{1f3fb}-\\x{1f3ff}]?)|(?:[\\x{1F3F3}|\\x{1F3F4}]\\x{FE0F}?\\x{200D}?[\\x{1F308}|\\x{2620}]\\x{FE0F}?)|(?:\\x{1F441}\\x{FE0F}?\\x{200D}?\\x{1F5E8}\\x{FE0F}?)|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}\\x{2764}\\x{fe0f}?\\x{200d}[\\x{1f48b}\\x{200d}]*[\\x{1f468}|\\x{1f469}])|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f466}|\\x{1f467}]\\x{200d}[\\x{1f466}|\\x{1f467}])|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f466}|\\x{1f467}]\\x{200d}[\\x{1f466}|\\x{1f467}])|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f466}|\\x{1f467}])|(?:[\\x{1f468}|\\x{1f469}]\\x{200d}[\\x{1f466}|\\x{1f467}])|(?:[\\x{1F9B8}|\\x{1F9B9}]+[\\x{1F3FB}-\\x{1F3FF}]?\\x{200D}[\\x{2640}-\\x{2642}]?\\x{FE0F}?)|(?:[\\x{1F468}|\\x{1F469}]+[\\x{1F3FB}-\\x{1F3FF}]?\\x{200D}[\\x{1F9B0}-\\x{1F9B3}]+\\x{FE0F}?)|[\\x{0023}-\\x{0039}]\\x{FE0F}?\\x{20e3}|(?:\\x{1F3F4}[\\x{E0060}-\\x{E00FF}]{1,6})|[\\x{1F1E0}-\\x{1F1FF}]{2}|(?:[\\x{1F468}|\\x{1F469}]\\x{FE0F}?[\\x{1F3FB}-\\x{1F3FF}]?\\x{200D}?[\\x{2695}|\\x{2696}|\\x{2708}|\\x{1F4BB}|\\x{1F4BC}|\\x{1F527}|\\x{1F52C}|\\x{1F680}|\\x{1F692}|\\x{1F33E}|\\x{1F3EB}|\\x{1F3EC}|\\x{1f373}|\\x{1f393}|\\x{1f3a4}|\\x{1f3ed}|\\x{1f3a8}]\\x{FE0F}?)|[\\x{1F468}-\\x{1F469}\\x{1F9D0}-\\x{1F9DF}][\\x{1F3FA}-\\x{1F3FF}]?\\x{200D}?[\\x{2640}\\x{2642}\\x{2695}\\x{2696}\\x{2708}]?\\x{FE0F}?|(?:[\\x{1F9B5}|\\x{1F9B6}]+[\\x{1F3FB}-\\x{1F3FF}]+)|(?:[\\x{1f46e}\\x{1F468}\\x{1F469}\\x{1f575}\\x{1f471}-\\x{1f487}\\x{1F645}-\\x{1F64E}\\x{1F926}\\x{1F937}]|[\\x{1F460}-\\x{1F482}\\x{1F3C3}-\\x{1F3CC}\\x{26F9}\\x{1F486}\\x{1F487}\\x{1F6A3}-\\x{1F6B6}\\x{1F938}-\\x{1F93E}]|\\x{1F46F})\\x{FE0F}?[\\x{1F3FA}-\\x{1F3FF}]?\\x{200D}?[\\x{2640}\\x{2642}]?\\x{FE0F}?|(?:[\\x{26F9}\\x{261D}\\x{270A}-\\x{270D}\\x{1F385}-\\x{1F3CC}\\x{1F442}-\\x{1F4AA}\\x{1F574}-\\x{1F596}\\x{1F645}-\\x{1F64F}\\x{1F6A3}-\\x{1F6CC}\\x{1F918}-\\x{1F93E}]\\x{FE0F}?[\\x{1F3FA}-\\x{1F3FF}])|(?:[\\x{2194}-\\x{2199}\\x{21a9}-\\x{21aa}]\\x{FE0F}?|[\\x{0023}-\\x{002a}]|[\\x{3030}\\x{303d}]\\x{FE0F}?|(?:[\\x{1F170}-\\x{1F171}]|[\\x{1F17E}-\\x{1F17F}]|\\x{1F18E}|[\\x{1F191}-\\x{1F19A}]|[\\x{1F1E6}-\\x{1F1FF}])\\x{FE0F}?|\\x{24c2}\\x{FE0F}?|[\\x{3297}\\x{3299}]\\x{FE0F}?|(?:[\\x{1F201}-\\x{1F202}]|\\x{1F21A}|\\x{1F22F}|[\\x{1F232}-\\x{1F23A}]|[\\x{1F250}-\\x{1F251}])\\x{FE0F}?|[\\x{203c}\\x{2049}]\\x{FE0F}?|[\\x{25aa}-\\x{25ab}\\x{25b6}\\x{25c0}\\x{25fb}-\\x{25fe}]\\x{FE0F}?|[\\x{00a9}\\x{00ae}]\\x{FE0F}?|[\\x{2122}\\x{2139}]\\x{FE0F}?|\\x{1F004}\\x{FE0F}?|[\\x{2b05}-\\x{2b07}\\x{2b1b}-\\x{2b1c}\\x{2b50}\\x{2b55}]\\x{FE0F}?|[\\x{231a}-\\x{231b}\\x{2328}\\x{23cf}\\x{23e9}-\\x{23f3}\\x{23f8}-\\x{23fa}]\\x{FE0F}?|\\x{1F0CF}|[\\x{2934}\\x{2935}]\\x{FE0F}?)|[\\x{2700}-\\x{27bf}]\\x{FE0F}?|[\\x{1F000}-\\x{1F6FF}\\x{1F900}-\\x{1F9FF}]\\x{FE0F}?|[\\x{2600}-\\x{26ff}]\\x{FE0F}?|(?:[\\x{1F466}-\\x{1F469}]+\\x{FE0F}?[\\x{1F3FB}-\\x{1F3FF}]?)|[\\x{0030}-\\x{0039}]\\x{FE0F}";
3838

3939
private String shortnameRegexp = ":([-+\\w]+):";
4040

0 commit comments

Comments
 (0)