-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Java] Implement the new module for view tracking (#182)
* feat: init view module * feat: module views * refactor: delete unused things * refactor: delete unnecessary things for views java * refactor: delete unnecessary things for views java * feat: views to the flow * fix: missing thingies * fix: missing curly bracket * fix: remove _idv * feat: new functions * fix: view segmentation * fix: convert to linekd hash map * feat: move convenient functions to utils * fix: remove unnecesarry check * feat: session changes * fix: delete unncessary * fix: whitespace * fix: some of orders * feat: random val * Update ModuleViews.java * Update ModuleViews.java * Update SDKCore.java * Update UtilsTests.java * fix: revert test * fix: changes from child pr * feat: migrate test branch logic to main * feat: ids * feat: usage of ids * feat: revert force send * fix: nonull * feat: migrate from test branch * feat: global segmns * feat: add log * feat: add is empty checl * fix: pr things * feat: add old way call * feat: test changes * [Java] Implement the new module for view tracking - tests (#236) * feat: view impl tests * feat: on session began callback * feat: add things to the stop * feat: all bad values and non existing ones * feat: scenario simple flow * fix: simple flow * fix: map usage * fix: rename * feat: segm testing1 * feat: mixed test flow 1 * feat: auto stopped ones * feat: validate segmentation 1 * feat: validate segmentation 2 * feat: validate internal keys * fix: int val check * fix: remove unused var * fix: delete unncessary things * chore: remove whitespcae * chore: whitespace * feat: module views test * feat: integrate views to flow * fix: undo * fix: add missing log * fix: regex pattern * fix: add changelog and deprecate * fix: remove unused import * fix: test thing * fix: device id tests * feat: test id generator * fix: view impl tests * fix: all view ids * feat: additional tests * fix: idx * feat: missing test logic * feat: new way of testing scneario * doc: update comment of scenario id * Update ScenarioManuelViewTests.java * feat: test prefixes * refactor: checkings * Update InternalConfig.java * Update InternalConfig.java * chore: naming sc * refactor: fix PR changes * feat: basic test about global segm * refactor: order * feat: view case proposal * feat: add missing test cases * feat: views module changes * fix: undo * fix: conflict * fix: conflict
- Loading branch information
1 parent
11d20ce
commit 26eaa06
Showing
25 changed files
with
2,504 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
sdk-java/src/main/java/ly/count/sdk/java/internal/ConfigViews.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package ly.count.sdk.java.internal; | ||
|
||
import java.util.Map; | ||
import ly.count.sdk.java.Config; | ||
|
||
public class ConfigViews { | ||
private final Config config; | ||
|
||
public ConfigViews(Config config) { | ||
this.config = config; | ||
} | ||
|
||
protected Map<String, Object> globalViewSegmentation = null; | ||
|
||
/** | ||
* @param segmentation segmentation values that will be added for all recorded views (manual and automatic) | ||
* @return Returns the same config object for convenient linking | ||
*/ | ||
public Config setGlobalViewSegmentation(Map<String, Object> segmentation) { | ||
globalViewSegmentation = segmentation; | ||
return config; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.