-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 #20414 from wordpress-mobile/issue/19572-read-stre…
…ams-discover-endpoint-integration [Reader] `read/streams/discover` endpoint integration
- Loading branch information
Showing
4 changed files
with
3,906 additions
and
11 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
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
23 changes: 23 additions & 0 deletions
23
...src/main/java/org/wordpress/android/util/config/ReaderDiscoverNewEndpointFeatureConfig.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 org.wordpress.android.util.config | ||
|
||
import org.wordpress.android.BuildConfig | ||
import org.wordpress.android.annotation.Feature | ||
import javax.inject.Inject | ||
|
||
private const val READER_DISCOVER_NEW_ENDPOINT_REMOTE_FIELD = "reader_discover_new_endpoint" | ||
|
||
@Feature( | ||
remoteField = READER_DISCOVER_NEW_ENDPOINT_REMOTE_FIELD, | ||
defaultValue = true, | ||
) | ||
class ReaderDiscoverNewEndpointFeatureConfig @Inject constructor( | ||
appConfig: AppConfig | ||
) : FeatureConfig( | ||
appConfig, | ||
BuildConfig.READER_DISCOVER_NEW_ENDPOINT, | ||
READER_DISCOVER_NEW_ENDPOINT_REMOTE_FIELD | ||
) { | ||
override fun isEnabled(): Boolean { | ||
return super.isEnabled() && BuildConfig.IS_JETPACK_APP | ||
} | ||
} |
Oops, something went wrong.