Skip to content

feat(functions): add support for Pigeon. Update android to Kotlin. #17433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 19, 2025
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
10 changes: 10 additions & 0 deletions packages/cloud_functions/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2025 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# in the LICENSE file.

include: ../../analysis_options.yaml

analyzer:
exclude:
- cloud_functions_platform_interface/lib/src/pigeon/messages.pigeon.dart
- cloud_functions_platform_interface/test/pigeon/test_api.dart
20 changes: 19 additions & 1 deletion packages/cloud_functions/cloud_functions/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ version '1.0-SNAPSHOT'

apply plugin: 'com.android.library'
apply from: file("local-config.gradle")
apply plugin: 'kotlin-android'

buildscript {
ext.kotlin_version = "1.8.22"
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.1.4'
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
}
}

rootProject.allprojects {
Expand Down Expand Up @@ -48,7 +55,12 @@ android {
sourceCompatibility project.ext.javaVersion
targetCompatibility project.ext.javaVersion
}


sourceSets {
main.java.srcDirs += "src/main/kotlin"
test.java.srcDirs += "src/test/kotlin"
}

buildFeatures {
buildConfig = true
}
Expand All @@ -64,6 +76,12 @@ android {
implementation 'androidx.annotation:annotation:1.7.0'
implementation 'org.reactivestreams:reactive-streams:1.0.4'
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17
}

}

apply from: file("./user-agent.gradle")
apply plugin: 'org.jetbrains.kotlin.android'

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading