-
Notifications
You must be signed in to change notification settings - Fork 1
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 #375 from gini/BSDK-258-create-host-fragmets
Bsdk 258 create host fragmets
- Loading branch information
Showing
196 changed files
with
4,325 additions
and
4,762 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
DO NOT EDIT MANUALLY! | ||
Automatically created by the updateReleaseOrderFile task. | ||
|
||
Release order for :capture-sdk:sdk 3.8.1: | ||
1. :capture-sdk:sdk 3.8.1 | ||
|
||
Release order for :core-api-library:library 2.1.3: | ||
1. :core-api-library:library 2.1.3 | ||
|
||
Release order for :bank-api-library:library 3.1.2: | ||
1. :core-api-library:library 2.1.3 | ||
2. :bank-api-library:library 3.1.2 | ||
|
||
Release order for :health-api-library:library 2.1.3: | ||
1. :core-api-library:library 2.1.3 | ||
2. :health-api-library:library 2.1.3 | ||
|
||
Release order for :health-sdk:sdk 2.1.3: | ||
1. :core-api-library:library 2.1.3 | ||
2. :health-api-library:library 2.1.3 | ||
3. :health-sdk:sdk 2.1.3 | ||
|
||
Release order for :capture-sdk:default-network 3.8.1: | ||
1. :core-api-library:library 2.1.3 | ||
2. :bank-api-library:library 3.1.2 | ||
3. :capture-sdk:sdk 3.8.1 | ||
4. :capture-sdk:default-network 3.8.1 | ||
|
||
Release order for :bank-sdk:sdk 3.8.1: | ||
1. :core-api-library:library 2.1.3 | ||
2. :bank-api-library:library 3.1.2 | ||
3. :capture-sdk:sdk 3.8.1 | ||
4. :capture-sdk:default-network 3.8.1 | ||
5. :bank-sdk:sdk 3.8.1 | ||
Release order for :capture-sdk:sdk 3.9.0: | ||
1. :capture-sdk:sdk 3.9.0 | ||
|
||
Release order for :core-api-library:library 2.1.4: | ||
1. :core-api-library:library 2.1.4 | ||
|
||
Release order for :bank-api-library:library 3.1.3: | ||
1. :core-api-library:library 2.1.4 | ||
2. :bank-api-library:library 3.1.3 | ||
|
||
Release order for :health-api-library:library 2.1.4: | ||
1. :core-api-library:library 2.1.4 | ||
2. :health-api-library:library 2.1.4 | ||
|
||
Release order for :health-sdk:sdk 2.1.4: | ||
1. :core-api-library:library 2.1.4 | ||
2. :health-api-library:library 2.1.4 | ||
3. :health-sdk:sdk 2.1.4 | ||
|
||
Release order for :capture-sdk:default-network 3.9.0: | ||
1. :core-api-library:library 2.1.4 | ||
2. :bank-api-library:library 3.1.3 | ||
3. :capture-sdk:sdk 3.9.0 | ||
4. :capture-sdk:default-network 3.9.0 | ||
|
||
Release order for :bank-sdk:sdk 3.9.0: | ||
1. :core-api-library:library 2.1.4 | ||
2. :bank-api-library:library 3.1.3 | ||
3. :capture-sdk:sdk 3.9.0 | ||
4. :capture-sdk:default-network 3.9.0 | ||
5. :bank-sdk:sdk 3.9.0 | ||
|
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...debug/res/xml/network_security_config.xml → ...c/dev/res/xml/network_security_config.xml
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<network-security-config> | ||
<debug-overrides> | ||
<base-config cleartextTrafficPermitted="false"> | ||
<trust-anchors> | ||
<!-- Trust user added CAs while debuggable only --> | ||
<certificates src="system" /> | ||
<certificates src="user" /> | ||
</trust-anchors> | ||
</debug-overrides> | ||
</base-config> | ||
</network-security-config> |
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
47 changes: 47 additions & 0 deletions
47
...mple-app/src/main/java/net/gini/android/bank/sdk/exampleapp/ui/CaptureFlowHostActivity.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,47 @@ | ||
package net.gini.android.bank.sdk.exampleapp.ui | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
import android.os.Bundle | ||
import androidx.appcompat.app.AppCompatActivity | ||
import androidx.core.content.IntentCompat | ||
import androidx.fragment.app.FragmentContainerView | ||
import dagger.hilt.android.AndroidEntryPoint | ||
import net.gini.android.bank.sdk.exampleapp.R | ||
|
||
private const val EXTRA_IN_OPEN_WITH_INTENT = "EXTRA_IN_OPEN_WITH_INTENT" | ||
|
||
@AndroidEntryPoint | ||
class CaptureFlowHostActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_capture_flow_host) | ||
|
||
if (savedInstanceState == null) { | ||
val openWithIntent = IntentCompat.getParcelableExtra(intent, EXTRA_IN_OPEN_WITH_INTENT, Intent::class.java) | ||
if (openWithIntent != null) { | ||
startBankSDKForOpenWith(openWithIntent) | ||
} | ||
} | ||
} | ||
|
||
private fun startBankSDKForOpenWith(openWithIntent: Intent) { | ||
findViewById<FragmentContainerView>(R.id.fragment_host).getFragment<ClientBankSDKFragment>() | ||
.startBankSDKForIntent(openWithIntent) | ||
} | ||
|
||
|
||
private fun startCaptureSDKForOpenWith(openWithIntent: Intent) { | ||
findViewById<FragmentContainerView>(R.id.fragment_host).getFragment<ClientCaptureSDKFragment>() | ||
.startCaptureSDKForIntent(openWithIntent) | ||
} | ||
|
||
companion object { | ||
fun newIntent(context: Context, openWithIntent: Intent? = null) = | ||
Intent(context, CaptureFlowHostActivity::class.java).apply { | ||
openWithIntent?.let { putExtra(EXTRA_IN_OPEN_WITH_INTENT, it) } | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.