Skip to content

Commit 1636c05

Browse files
committed
create config option for in-app in memory storage
1 parent ff412dc commit 1636c05

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableConfig.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public class IterableConfig {
7171
*/
7272
final String[] allowedProtocols;
7373

74+
/**
75+
*
76+
*
77+
*/
78+
final boolean useInMemoryStorageForInApps;
79+
7480
private IterableConfig(Builder builder) {
7581
pushIntegrationName = builder.pushIntegrationName;
7682
urlHandler = builder.urlHandler;
@@ -83,6 +89,7 @@ private IterableConfig(Builder builder) {
8389
authHandler = builder.authHandler;
8490
expiringAuthTokenRefreshPeriod = builder.expiringAuthTokenRefreshPeriod;
8591
allowedProtocols = builder.allowedProtocols;
92+
useInMemoryStorageForInApps = builder.useInMemoryStorageForInApps;
8693
}
8794

8895
public static class Builder {
@@ -97,6 +104,8 @@ public static class Builder {
97104
private IterableAuthHandler authHandler;
98105
private long expiringAuthTokenRefreshPeriod = 60000L;
99106
private String[] allowedProtocols = new String[0];
107+
private boolean useInMemoryStorageForInApps = false;
108+
100109
public Builder() {}
101110

102111
/**
@@ -217,6 +226,12 @@ public Builder setAllowedProtocols(@NonNull String[] allowedProtocols) {
217226
return this;
218227
}
219228

229+
@NonNull
230+
public Builder setUseInMemoryStorageForInApps(boolean useInMemoryStorageForInApps) {
231+
this.useInMemoryStorageForInApps = useInMemoryStorageForInApps;
232+
return this;
233+
}
234+
220235
@NonNull
221236
public IterableConfig build() {
222237
return new IterableConfig(this);

0 commit comments

Comments
 (0)