Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate internal classes to Kotlin (close #564)
PR #570 * Prepare for 5.0.0-alpha.1 release * Translate EmitterConfig * Translate EmitterControllerImpl * Halfway through Emitter * Translate Emitter stuff * Translate GDPR stuff * Translate global contexts stuff * Translate remote config stuff * Translate Session stuff * Translate utils and remove Preconditions * Fix some types * Remove deprecated LifecycleOwner in ProcessObserver * Translate deeplinkstate, activitylifecyclehandler, exceptionhandler * Add static annotation * Update tests * Refactor EmitterBuilder * Remove dodgy cast * Translate InstallTracker * Translate some state stuff * Translate more state stuff * Translate subject config stuff * Translate tracker config stuff * Specify minimum API level 24 * Translate TrackerEvent * Translate Logger * Translate PlatformContext * Translate SchemaRule * Translate ServiceProviderInterface * Translate TrackerWebViewInterface * Translate Subject * Translate Tracker, remove TrackerBuilder * Change other stuff in Tracker * Make tests build * Translate ConsentGranted/Withdrawn tests * Remove AndroidTestCase from tests * Change EmitterConfigurationUpdate methods into properties * Translate DeepLinkReceived test * Translate ApplicationInstall test * Translate MockEventStore * Use properties instead of methods in all ConfigUpdate classes * Remove some brackets * Translate ECommerce tests * Translate remaining Event tests * Translate globalcontext tests * Add @test annotation for EventStore tests * Translate EventStore tests * Translate remote config tests * Translate ConfigurationTest * Translate some more tests * Translate TrackerTest * Translate Utils tests * Translate payload tests * Translate TLSArguments test * Translate NoiseTest * Translate some more tests * Translate LoggingTest * Translate NetworkConnection tests * Translate some more tests * Translate Subject tests * Translate webview tests * Translate SessionTest * Translate EmitterTest * Translate EventSendingTest * Translate StateManagerTest * Remove API 21 from GH workflow test matrix * Remove legacy v1 v2 Session methods * Make configUpdate booleans private * Standardise Tracker/Emitter defaults * Update TrackerDefaults * Don't allow null in contexts list * Remove @JvmField annotations * Update EventStore interface to be all functions * Make Util methods all methods * Tidy up some other functions/properties * Update tests to use eventStore size function * Remove unsafe null calls from Emitter * Make Session null safe * Update SessionController properties to optionals * Make DeepLinkStateMachine null safe * Make LifecycleStateMachine null safe * Make ScreenStateMachine safe * Make ServiceProvider safer * Make StateManager safe * Make ServiceProvider even safer * Make Subject null safe * Fix Tracker test * Fix LoggerDelegate assignment * Make TrackerEvent and others null safe * Make DeviceInfoMonitor safe * Make utils safe * Only allow non-null schemas for StateMachines * Fix Session test * Make config classes null safe * Make events safe * Make global contexts safe * Make network stuff null safe * Make payloads safe * Make Snowplow class safe * Use HTTPS as default * Move Emitter- and TrackerDefaults to core * Fix Tracker test * Replace context test import * Use Kotlin lambda instead of Consumer * Increase API target to 32 * Don't test API 32 after all * Configure emitTimeout via NetworkConfiguration * Add docs for 'secret' config options * Remove unused private Tracker method * Put the 'get' back in getOrMake method names * Use properties instead of functions for StateMachineInterface * Fix tests * Don't allow null maps for Payloads * Use API target 31
- Loading branch information