Updated emoji to version 14.0
Przed Szerokość: | Wysokość: | Rozmiar: 86 KiB Po Szerokość: | Wysokość: | Rozmiar: 88 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 85 KiB Po Szerokość: | Wysokość: | Rozmiar: 47 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 5.0 KiB Po Szerokość: | Wysokość: | Rozmiar: 44 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 121 KiB Po Szerokość: | Wysokość: | Rozmiar: 125 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 162 KiB Po Szerokość: | Wysokość: | Rozmiar: 166 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 233 KiB Po Szerokość: | Wysokość: | Rozmiar: 238 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 170 KiB Po Szerokość: | Wysokość: | Rozmiar: 176 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 120 KiB Po Szerokość: | Wysokość: | Rozmiar: 99 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 150 KiB Po Szerokość: | Wysokość: | Rozmiar: 150 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 150 KiB Po Szerokość: | Wysokość: | Rozmiar: 149 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 144 KiB Po Szerokość: | Wysokość: | Rozmiar: 150 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 139 KiB Po Szerokość: | Wysokość: | Rozmiar: 148 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 176 KiB Po Szerokość: | Wysokość: | Rozmiar: 142 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 164 KiB Po Szerokość: | Wysokość: | Rozmiar: 174 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 106 KiB Po Szerokość: | Wysokość: | Rozmiar: 87 KiB |
Po Szerokość: | Wysokość: | Rozmiar: 81 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 195 KiB Po Szerokość: | Wysokość: | Rozmiar: 200 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 91 KiB Po Szerokość: | Wysokość: | Rozmiar: 91 KiB |
|
@ -75,10 +75,10 @@ public class DownloadLatestEmojiDataJob extends BaseJob {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public DownloadLatestEmojiDataJob(boolean force) {
|
public DownloadLatestEmojiDataJob(boolean ignoreAutoDownloadConstraints) {
|
||||||
this(new Job.Parameters.Builder()
|
this(new Job.Parameters.Builder()
|
||||||
.setQueue(QUEUE_KEY)
|
.setQueue(QUEUE_KEY)
|
||||||
.addConstraint(force ? NetworkConstraint.KEY : AutoDownloadEmojiConstraint.KEY)
|
.addConstraint(ignoreAutoDownloadConstraints ? NetworkConstraint.KEY : AutoDownloadEmojiConstraint.KEY)
|
||||||
.setMaxInstancesForQueue(1)
|
.setMaxInstancesForQueue(1)
|
||||||
.setMaxAttempts(5)
|
.setMaxAttempts(5)
|
||||||
.setLifespan(TimeUnit.DAYS.toMillis(1))
|
.setLifespan(TimeUnit.DAYS.toMillis(1))
|
||||||
|
@ -126,10 +126,10 @@ public class DownloadLatestEmojiDataJob extends BaseJob {
|
||||||
EmojiData emojiData = downloadJson(context, targetVersion);
|
EmojiData emojiData = downloadJson(context, targetVersion);
|
||||||
List<String> supportedDensities = emojiData.getDensities();
|
List<String> supportedDensities = emojiData.getDensities();
|
||||||
String format = emojiData.getFormat();
|
String format = emojiData.getFormat();
|
||||||
List<String> imagePaths = Stream.of(emojiData.getDataPages())
|
List<String> imagePaths = Stream.of(emojiData.getDataPages())
|
||||||
.map(EmojiPageModel::getSpriteUri)
|
.map(EmojiPageModel::getSpriteUri)
|
||||||
.map(Uri::getLastPathSegment)
|
.map(Uri::getLastPathSegment)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
String density = resolveDensity(supportedDensities, targetVersion.getDensity());
|
String density = resolveDensity(supportedDensities, targetVersion.getDensity());
|
||||||
targetVersion = new EmojiFiles.Version(targetVersion.getVersion(), targetVersion.getUuid(), density);
|
targetVersion = new EmojiFiles.Version(targetVersion.getVersion(), targetVersion.getUuid(), density);
|
||||||
|
|
|
@ -101,9 +101,10 @@ public class ApplicationMigrations {
|
||||||
static final int PNI_IDENTITY_2 = 57;
|
static final int PNI_IDENTITY_2 = 57;
|
||||||
static final int PNI_IDENTITY_3 = 58;
|
static final int PNI_IDENTITY_3 = 58;
|
||||||
static final int STORY_DISTRIBUTION_LIST_SYNC = 59;
|
static final int STORY_DISTRIBUTION_LIST_SYNC = 59;
|
||||||
|
static final int EMOJI_VERSION_7 = 60;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int CURRENT_VERSION = 59;
|
public static final int CURRENT_VERSION = 60;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||||
|
@ -441,6 +442,10 @@ public class ApplicationMigrations {
|
||||||
jobs.put(Version.STORY_DISTRIBUTION_LIST_SYNC, new StorageServiceMigrationJob());
|
jobs.put(Version.STORY_DISTRIBUTION_LIST_SYNC, new StorageServiceMigrationJob());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lastSeenVersion < Version.EMOJI_VERSION_7) {
|
||||||
|
jobs.put(Version.EMOJI_VERSION_7, new EmojiDownloadMigrationJob());
|
||||||
|
}
|
||||||
|
|
||||||
return jobs;
|
return jobs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|