Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions identity/credentialmanager/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ dependencies {
implementation(libs.androidx.compose.ui.graphics)
implementation(libs.androidx.compose.ui.tooling.preview)
implementation(libs.androidx.compose.material3)

// [START android_identity_credman_dependency]
implementation(libs.androidx.credentials)
// [END android_identity_credman_dependency]

// [START android_identity_gradle_dependencies]
implementation(libs.androidx.credentials)

Expand Down
23 changes: 21 additions & 2 deletions identity/credentialmanager/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
~ limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand All @@ -38,6 +39,24 @@
<!-- // [START android_identity_assetlinks_manifest] -->
<meta-data android:name="asset_statements" android:resource="@string/asset_statements" />
<!-- // [END android_identity_assetlinks_manifest] -->

<!-- // [START android_identity_credential_provider_service_manifest] -->
<service android:name=".MyCredentialProviderService"
android:enabled="true"
android:exported="true"
android:label="My Credential Provider"
android:icon="<any drawable icon>"
android:permission="android.permission.BIND_CREDENTIAL_PROVIDER_SERVICE"
tools:targetApi="upside_down_cake">
<intent-filter>
<action android:name="android.service.credentials.CredentialProviderService"/>
</intent-filter>
<meta-data
android:name="android.credentials.provider"
android:resource="@xml/provider"/>
</service>
<!-- // [END android_identity_credential_provider_service_manifest] -->

</application>

</manifest>
</manifest>
Loading