-
Notifications
You must be signed in to change notification settings - Fork 729
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
Avoiding direct BuildConfig
usage
#6517
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
274b1a1
moving analytics config to the config module, it's now up to forks to…
ouchadam 87a8c78
moving the voice message limit to the config module
ouchadam e795e9d
porting the onboarding variant selection to the config
ouchadam f14aabc
ports the key sharing strategy to the config
ouchadam 012485b
lifting the live location sharing build flag to the config along with…
ouchadam 56afac2
creating a location sharing config for holding the map tiler key
ouchadam b6d052e
lifting voip setting to a voip config
ouchadam cc4aae0
replacing DEBUG build config flag with injectable property
ouchadam 9fe3fc6
extracting the config models to their own files
ouchadam 811b2e8
accessing the notification action ids via a dedicated class which bui…
ouchadam d42c27b
lifting the low privacy build config to the config
ouchadam df02f50
moving git versioning to the buildMeta abstraction
ouchadam 18943e3
removing unused buildconfig option
ouchadam cceac66
moving build flavor information to the build meta
ouchadam c07296c
adding changelog entry
ouchadam 3d207f9
removing unused imports and fixing missing full stop on docs
ouchadam fe1019f
using Config strict mode flag directly within the Application as the …
ouchadam cb59d82
extracting the notification action ids to their own file
ouchadam 8b9d1bb
making use of the existing sdk int provider instead of supplying it v…
ouchadam 9b1def3
updating variable casing as they're no longer const val or file level
ouchadam 3c1e183
using low privacy log from the vector module for code within vector, …
ouchadam d1a63cc
removing unused import
ouchadam 2ee52f2
fixing import ordering
ouchadam 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 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 @@ | ||
[Modularization] Provides abstraction to avoids direct usages of BuildConfig |
48 changes: 48 additions & 0 deletions
48
vector-config/src/main/java/im/vector/app/config/Analytics.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,48 @@ | ||
/* | ||
* Copyright (c) 2022 New Vector Ltd | ||
* | ||
* 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. | ||
*/ | ||
|
||
package im.vector.app.config | ||
|
||
/** | ||
* The types of analytics Element currently supports. | ||
*/ | ||
sealed interface Analytics { | ||
|
||
/** | ||
* Disables the analytics integrations. | ||
*/ | ||
object Disabled : Analytics | ||
|
||
/** | ||
* Analytics integration via PostHog. | ||
*/ | ||
data class PostHog( | ||
/** | ||
* The PostHog instance url. | ||
*/ | ||
val postHogHost: String, | ||
|
||
/** | ||
* The PostHog instance API key. | ||
*/ | ||
val postHogApiKey: String, | ||
|
||
/** | ||
* A URL to more information about the analytics collection. | ||
*/ | ||
val policyLink: String, | ||
) : Analytics | ||
} |
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
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.
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.
ALLOW_FCM_USE
is not used