Skip to content

Commit 93ba811

Browse files
WIP: chore(appcheck-recaptcha-enterprise): Integrate module into build system and manifest
This commit integrates the new `firebase-appcheck-recaptchaenterprise` module into the project's build configuration and AndroidManifest.xml. Key changes include: - `AndroidManifest.xml`: Updated to include necessary permissions or components required by the reCAPTCHA Enterprise SDK or Firebase App Check. - `firebase-appcheck-recaptchaenterprise.gradle`: Configures the build settings for the new reCAPTCHA Enterprise App Check module. - `subprojects.cfg`: Adds `appcheck:firebase-appcheck-recaptchaenterprise` to the list of subprojects, making the module discoverable in the build.
1 parent c0d8076 commit 93ba811

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
plugins {
2+
id 'firebase-library'
3+
}
4+
5+
firebaseLibrary {
6+
libraryGroup = "appcheck"
7+
releaseNotes {
8+
name.set("{{app_check}} Recaptcha Enterprise")
9+
versionName.set("appcheck-recaptchaenterprise")
10+
hasKTX.set(false)
11+
}
12+
}
13+
14+
android {
15+
adbOptions {
16+
timeOutInMs 60 * 1000
17+
}
18+
19+
namespace "com.google.firebase.appcheck.recaptchaenterprise"
20+
compileSdkVersion project.compileSdkVersion
21+
defaultConfig {
22+
targetSdkVersion project.targetSdkVersion
23+
minSdkVersion project.minSdkVersion
24+
versionName version
25+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
26+
}
27+
compileOptions {
28+
sourceCompatibility JavaVersion.VERSION_1_8
29+
targetCompatibility JavaVersion.VERSION_1_8
30+
}
31+
32+
testOptions.unitTests.includeAndroidResources = false
33+
}
34+
35+
dependencies {
36+
javadocClasspath libs.autovalue.annotations
37+
38+
api project(':appcheck:firebase-appcheck')
39+
api 'com.google.firebase:firebase-annotations:16.2.0'
40+
api 'com.google.firebase:firebase-common:21.0.0'
41+
api 'com.google.firebase:firebase-common-ktx:21.0.0'
42+
api 'com.google.firebase:firebase-components:18.0.0'
43+
api 'com.google.android.recaptcha:recaptcha:18.8.0-beta01'
44+
45+
testImplementation(project(":integ-testing")) {
46+
exclude group: 'com.google.firebase', module: 'firebase-common'
47+
exclude group: 'com.google.firebase', module: 'firebase-components'
48+
}
49+
testImplementation libs.androidx.test.core
50+
testImplementation libs.truth
51+
testImplementation libs.junit
52+
testImplementation libs.mockito.core.v5120
53+
testImplementation libs.robolectric
54+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
4+
<!--Although the *SdkVersion is captured in gradle build files, this is required for non gradle builds-->
5+
<!--<uses-sdk android:minSdkVersion="21"/>-->
6+
<application>
7+
<service
8+
android:name="com.google.firebase.components.ComponentDiscoveryService"
9+
android:exported="false">
10+
<meta-data
11+
android:name="com.google.firebase.components:com.google.firebase.appcheck.recaptchaenterprise.FirebaseAppCheckRecaptchaEnterpriseRegistrar"
12+
android:value="com.google.firebase.components.ComponentRegistrar" />
13+
</service>
14+
</application>
15+
</manifest>

subprojects.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ appcheck:firebase-appcheck-debug-testing
33
appcheck:firebase-appcheck-debug
44
appcheck:firebase-appcheck-interop
55
appcheck:firebase-appcheck-playintegrity
6+
appcheck:firebase-appcheck-recaptchaenterprise
67
appcheck:firebase-appcheck
78
appcheck:firebase-appcheck:ktx
89

0 commit comments

Comments
 (0)