1plugins {
2 id 'com.android.library'
3 id 'expo-module-gradle-plugin'
4}
5
6group = 'com.t3tools.agentnotifications'
7version = '0.0.0'
8
9android {
10 namespace 'expo.modules.t3agentnotifications'
11 defaultConfig {
12 versionCode 1
13 versionName '0.0.0'
14 }
15 testOptions {
16 unitTests.includeAndroidResources = true
17 }
18}
19
20dependencies {
21 implementation project(':expo-notifications')
22 implementation 'com.google.firebase:firebase-messaging:25.0.1'
23 implementation 'androidx.core:core:1.17.0'
24 implementation 'androidx.lifecycle:lifecycle-process:2.9.3'
25 testImplementation 'junit:junit:4.13.2'
26 testImplementation 'org.robolectric:robolectric:4.16.1'
27}
28
29// Expo compiles modules with Java 17; Robolectric's Android 16 runtime needs 21.
30tasks.withType(Test).configureEach {
31 javaLauncher = javaToolchains.launcherFor {
32 languageVersion = JavaLanguageVersion.of(21)
33 }
34}