-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Move pixel API to its own gradle lib module #1103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
edb8f62
Moved statistics package to its own module
aitorvs 834452f
Added dagger as implementation to use Inject annotations
aitorvs 2b703f8
Added common gradle module and moved WorkerInjectorPlugin to it
aitorvs 94b8441
Moved AppUrl to common module and fix pixel service and entity
aitorvs ff43cc4
Moved Device.kt to common module and fix VERSION_NAME access
aitorvs 4ad8b0e
Moved exception package to common module
aitorvs 718a96a
Removed default Build.VERSION_NAME from UncaughtExceptionEntity
aitorvs dd1409d
Fixed the AppInstallationReferrerStateListener<>AtbInitializer depend…
aitorvs 24016e7
Fixed tests
aitorvs 522542d
Added test runner to common and statistics manifest
aitorvs 26709d0
Added dummy tests for CI
aitorvs d38c6f9
added jUnit to refreshVersions
malmstein d89fb41
Reverted change in RxPixelSenderTest as it stayed in the :app module
aitorvs c41dada
Changed compileSdkVersion and targetSdkVersion to 29 in :common and :…
aitorvs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -19,8 +19,8 @@ package com.duckduckgo.app.di | |
| import android.content.Context | ||
| import com.duckduckgo.app.global.device.ContextDeviceInfo | ||
| import com.duckduckgo.app.global.device.DeviceInfo | ||
| import com.duckduckgo.app.referral.AppInstallationReferrerStateListener | ||
| import com.duckduckgo.app.statistics.AtbInitializer | ||
| import com.duckduckgo.app.statistics.AtbInitializerListener | ||
| import com.duckduckgo.app.statistics.api.PixelSender | ||
| import com.duckduckgo.app.statistics.api.StatisticsService | ||
| import com.duckduckgo.app.statistics.api.StatisticsUpdater | ||
|
|
@@ -84,9 +84,9 @@ class StubStatisticsModule { | |
| fun atbInitializer( | ||
| statisticsDataStore: StatisticsDataStore, | ||
| statisticsUpdater: StatisticsUpdater, | ||
| appReferrerStateListener: AppInstallationReferrerStateListener | ||
| listeners: Set<@JvmSuppressWildcards AtbInitializerListener> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| ): AtbInitializer { | ||
| return AtbInitializer(statisticsDataStore, statisticsUpdater, appReferrerStateListener) | ||
| return AtbInitializer(statisticsDataStore, statisticsUpdater, listeners) | ||
| } | ||
|
|
||
| @Provides | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| /build |
This file contains hidden or 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,46 @@ | ||
| /* | ||
| * Copyright (c) 2021 DuckDuckGo | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| plugins { | ||
| id 'com.android.library' | ||
| id 'kotlin-android' | ||
| id 'kotlin-kapt' | ||
| } | ||
|
|
||
| apply from: "$rootProject.projectDir/gradle/android-library.gradle" | ||
|
|
||
| dependencies { | ||
| implementation Kotlin.stdlib.jdk7 | ||
| implementation KotlinX.coroutines.core | ||
| implementation KotlinX.coroutines.android | ||
|
|
||
| implementation AndroidX.work.runtimeKtx | ||
|
|
||
| implementation Google.dagger | ||
|
|
||
| implementation JakeWharton.timber | ||
|
|
||
| // Room | ||
| implementation AndroidX.room.runtime | ||
| implementation AndroidX.room.rxJava2 | ||
| kapt AndroidX.room.compiler | ||
| testImplementation AndroidX.room.testing | ||
| androidTestImplementation AndroidX.room.testing | ||
|
|
||
| testImplementation Testing.junit4 | ||
| androidTestImplementation AndroidX.test.runner | ||
| androidTestImplementation AndroidX.test.rules | ||
| } |
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍