-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APPS-3693: add new behaviour for IAP
- Loading branch information
Showing
8 changed files
with
86 additions
and
1 deletion.
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
19 changes: 19 additions & 0 deletions
19
app/src/releaseOldKeys/java/org/stepic/droid/configuration/EndpointResolverImpl.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,19 @@ | ||
package org.stepic.droid.configuration | ||
|
||
import org.stepik.android.remote.auth.model.TokenType | ||
import javax.inject.Inject | ||
|
||
class EndpointResolverImpl | ||
@Inject | ||
constructor( | ||
private val config: Config | ||
) : EndpointResolver { | ||
override fun getOAuthClientId(type: TokenType): String = | ||
config.getOAuthClientId(type) | ||
|
||
override fun getBaseUrl(): String = | ||
config.baseUrl | ||
|
||
override fun getOAuthClientSecret(type: TokenType): String = | ||
config.getOAuthClientSecret(type) | ||
} |
13 changes: 13 additions & 0 deletions
13
app/src/releaseOldKeys/java/org/stepic/droid/util/DebugToolsHelper.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,13 @@ | ||
package org.stepic.droid.util | ||
|
||
import android.app.Application | ||
import okhttp3.Interceptor | ||
|
||
object DebugToolsHelper { | ||
fun initDebugTools(app: Application) { | ||
// no op | ||
} | ||
|
||
fun getDebugInterceptors(): List<Interceptor> = | ||
emptyList() | ||
} |
10 changes: 10 additions & 0 deletions
10
app/src/releaseOldKeys/java/org/stepik/android/view/debug/ui/fragment/DebugMenu.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,10 @@ | ||
package org.stepik.android.view.debug.ui.fragment | ||
|
||
import androidx.fragment.app.Fragment | ||
|
||
interface DebugMenu { | ||
companion object { | ||
const val TAG = "DebugFragment" | ||
fun newInstance(): Fragment = Fragment() | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
app/src/releaseOldKeys/java/org/stepik/android/view/injection/debug/DebugComponent.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,11 @@ | ||
package org.stepik.android.view.injection.debug | ||
|
||
import dagger.Subcomponent | ||
|
||
@Subcomponent | ||
interface DebugComponent { | ||
@Subcomponent.Builder | ||
interface Builder { | ||
fun build(): DebugComponent | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...rc/releaseOldKeys/java/org/stepik/android/view/injection/debug/InAppPurchasesComponent.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,11 @@ | ||
package org.stepik.android.view.injection.debug | ||
|
||
import dagger.Subcomponent | ||
|
||
@Subcomponent | ||
interface InAppPurchasesComponent { | ||
@Subcomponent.Builder | ||
interface Builder { | ||
fun build(): InAppPurchasesComponent | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
app/src/releaseOldKeys/java/org/stepik/android/view/injection/debug/SplitTestsComponent.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,11 @@ | ||
package org.stepik.android.view.injection.debug | ||
|
||
import dagger.Subcomponent | ||
|
||
@Subcomponent | ||
interface SplitTestsComponent { | ||
@Subcomponent.Builder | ||
interface Builder { | ||
fun build(): SplitTestsComponent | ||
} | ||
} |