-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #663 from braintree/kotlin_analytics
Refactor Analytics to Kotlin
- Loading branch information
Showing
23 changed files
with
821 additions
and
834 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
28 changes: 0 additions & 28 deletions
28
BraintreeCore/src/main/java/com/braintreepayments/api/AnalyticsBaseWorker.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
BraintreeCore/src/main/java/com/braintreepayments/api/AnalyticsBaseWorker.kt
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 com.braintreepayments.api | ||
|
||
import android.content.Context | ||
import androidx.work.Worker | ||
import androidx.work.WorkerParameters | ||
|
||
// NEXT_MAJOR_VERSION: remove this class, it may no longer be needed | ||
|
||
/** | ||
* Class for background analytics tasks. | ||
* This class is used internally by the SDK and should not be used directly. | ||
* It is not subject to semantic versioning and may change at any time. | ||
* @suppress | ||
*/ | ||
abstract class AnalyticsBaseWorker( | ||
context: Context, | ||
workerParams: WorkerParameters | ||
) : Worker(context, workerParams) { | ||
|
||
internal open fun createAnalyticsClientFromInputData(): AnalyticsClient { | ||
return AnalyticsClient(applicationContext) | ||
} | ||
} |
225 changes: 0 additions & 225 deletions
225
BraintreeCore/src/main/java/com/braintreepayments/api/AnalyticsClient.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.