Skip to content

Commit

Permalink
Changed version
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea committed Oct 31, 2023
1 parent 1ff6a3a commit 5756fa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ apply plugin: 'signing'
apply plugin: 'kotlin-android'

ext {
splitVersion = '3.4.0-rc1'
splitVersion = '3.4.0-alpha-2'
}

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ public boolean update(ProcessedSplitChange splitChange) {
return false;
}

// this will be true if there is at least one split change; otherwise false
boolean result = false;
boolean appliedUpdates = false;

List<Split> activeSplits = splitChange.getActiveSplits();
List<Split> archivedSplits = splitChange.getArchivedSplits();
if (activeSplits != null) {
if (!activeSplits.isEmpty()) {
result = true;
// There is at least one added or modified feature flag
appliedUpdates = true;
}
for (Split split : activeSplits) {
Split loadedSplit = mInMemorySplits.get(split.name);
Expand All @@ -106,7 +106,7 @@ public boolean update(ProcessedSplitChange splitChange) {
for (Split split : archivedSplits) {
if (mInMemorySplits.remove(split.name) != null) {
// The flag was in memory, so it will be updated
result = true;
appliedUpdates = true;
decreaseTrafficTypeCount(split.trafficTypeName);
deleteFromFlagSetsIfNecessary(split);
}
Expand All @@ -117,7 +117,7 @@ public boolean update(ProcessedSplitChange splitChange) {
mUpdateTimestamp = splitChange.getUpdateTimestamp();
mPersistentStorage.update(splitChange);

return result;
return appliedUpdates;
}

@Override
Expand Down

0 comments on commit 5756fa2

Please sign in to comment.