Skip to content

Commit d952003

Browse files
authored
package refactor (#534)
* Implement Firebase segmentation SDK device local cache * [Firebase Segmentation] Add custom installation id cache layer and tests for it. * Add test for updating cache * Switch to use SQLiteOpenHelper * Switch to use SharedPreferences from SQLite. * Change the cache class to be singleton * Wrap shared pref commit in a async task. * Address comments * Google format fix * Replace some deprecated code. * Package refactor * nit * nit
1 parent 1274b42 commit d952003

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package com.google.firebase.segmentation;
15+
package com.google.firebase.segmentation.local;
1616

1717
import static com.google.common.truth.Truth.assertThat;
1818
import static org.junit.Assert.assertNull;

firebase-segmentation/src/main/java/com/google/firebase/segmentation/CustomInstallationIdCache.java renamed to firebase-segmentation/src/main/java/com/google/firebase/segmentation/local/CustomInstallationIdCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package com.google.firebase.segmentation;
15+
package com.google.firebase.segmentation.local;
1616

1717
import android.content.Context;
1818
import android.content.SharedPreferences;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package com.google.firebase.segmentation;
15+
package com.google.firebase.segmentation.local;
1616

1717
import com.google.auto.value.AutoValue;
18-
import com.google.firebase.segmentation.CustomInstallationIdCache.CacheStatus;
18+
import com.google.firebase.segmentation.local.CustomInstallationIdCache.CacheStatus;
1919

2020
/**
2121
* This class represents a cache entry value in {@link CustomInstallationIdCache}, which contains a

0 commit comments

Comments
 (0)