-
Notifications
You must be signed in to change notification settings - Fork 136
[Jetpack Performance] Add local feature flag and enable app passwords for all endpoints #14544
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
hichamboushaba
merged 24 commits into
trunk
from
issue/WOOMOB-1126-app-passwords-network
Sep 5, 2025
Merged
Changes from 17 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9789e81
Refactor handling of Application Passwords configuration
hichamboushaba 6161d74
Rename property
hichamboushaba cb1cf6e
Add new property to control whether feature is enabled or not for WPC…
hichamboushaba 225395d
Copy `WooExperimentalNetwork` logic to `WooNetwork`
hichamboushaba 856bbe1
Remove WooExperimentalNetwork
hichamboushaba 3444de8
Force using Jetpack tunnel when feature is disabled
hichamboushaba aeb3d6b
Remove unused argument
hichamboushaba 7df9071
Remove unused remote config key
hichamboushaba 65d2f19
Remove old code related to the initial experiment
hichamboushaba edc6d45
Improve log message for failed requests
hichamboushaba 90d18fb
Add a feature flag for the feature
hichamboushaba a442412
Minor refactoring for the configuration class
hichamboushaba 60312f7
Make `isEnabledForDirectAccess` enabled by default
hichamboushaba 043d3dc
Update unit tests
hichamboushaba de41eb5
Fix detekt issues
hichamboushaba c7f9c85
Fix wear app build issue
hichamboushaba 8ea3d7f
Fix issue for Jetpack CP sites
hichamboushaba bd77057
Add preference key for the experimental toggle
hichamboushaba 44044c9
Add a preference toggle to the experimental features screen
hichamboushaba 2ef0b44
Rename settings entry to "Experimental features"
hichamboushaba 1700937
Merge pull request #14559 from woocommerce/issue/WOOMOB-1183-jp-app-p…
irfano 8ee5125
Remove outdated comment section
hichamboushaba 3e845a0
Merge branch 'trunk' into issue/WOOMOB-1126-app-passwords-network
hichamboushaba 586a357
Remove old way for checking for app passwords support
hichamboushaba 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
24 changes: 24 additions & 0 deletions
24
WooCommerce-Wear/src/main/java/com/woocommerce/android/wear/di/ApplicationPasswordsModule.kt
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,24 @@ | ||
| package com.woocommerce.android.wear.di | ||
|
|
||
| import dagger.Binds | ||
| import dagger.Module | ||
| import dagger.hilt.InstallIn | ||
| import dagger.hilt.components.SingletonComponent | ||
| import org.wordpress.android.fluxc.network.rest.wpapi.applicationpasswords.ApplicationPasswordsConfiguration | ||
| import javax.inject.Inject | ||
|
|
||
| @Module | ||
| @InstallIn(SingletonComponent::class) | ||
| interface ApplicationPasswordsModule { | ||
| @Binds | ||
| fun bindApplicationPasswordsConfiguration( | ||
| configuration: WooWearApplicationPasswordsConfiguration | ||
| ): ApplicationPasswordsConfiguration | ||
| } | ||
|
|
||
| class WooWearApplicationPasswordsConfiguration @Inject constructor() : ApplicationPasswordsConfiguration { | ||
| override val applicationName: String = "" | ||
|
|
||
| override fun isEnabledForDirectAccess(): Boolean = false | ||
| override suspend fun isEnabledForJetpackAccess(): Boolean = false | ||
| } | ||
14 changes: 14 additions & 0 deletions
14
...tlin/com/woocommerce/android/applicationpasswords/WooApplicationPasswordsConfiguration.kt
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,14 @@ | ||
| package com.woocommerce.android.applicationpasswords | ||
|
|
||
| import com.woocommerce.android.BuildConfig | ||
| import com.woocommerce.android.util.DeviceInfo | ||
| import com.woocommerce.android.util.FeatureFlag.APP_PASSWORDS_FOR_JETPACK_SITES | ||
| import jakarta.inject.Inject | ||
| import org.wordpress.android.fluxc.network.rest.wpapi.applicationpasswords.ApplicationPasswordsConfiguration | ||
|
|
||
| class WooApplicationPasswordsConfiguration @Inject constructor() : ApplicationPasswordsConfiguration { | ||
| override val applicationName: String = | ||
| "${BuildConfig.APPLICATION_ID}.app-client.${DeviceInfo.name.replace(' ', '-')}" | ||
|
|
||
| override suspend fun isEnabledForJetpackAccess(): Boolean = APP_PASSWORDS_FOR_JETPACK_SITES.isEnabled() | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
The wear app didn't support Application Passwords before #12124, and we are keeping the same behavior.