Skip to content

Commit 9c2ab08

Browse files
authored
feat(performance): add support for Pigeon. Update iOS to Swift and Android to Kotlin (#17676)
* feat(performance): add support for Pigeon. Update iOS to Swift and Android to Kotlin * chore: fix ci * fix(performance): update performance collection methods to use data collection field * tests: remove redundant performance collection tests * chore: remove unused trace handle constant from method channel trace tests
1 parent 4e80234 commit 9c2ab08

28 files changed

+2988
-898
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright 2025 The Chromium Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# in the LICENSE file.
4+
5+
include: ../../analysis_options.yaml
6+
7+
analyzer:
8+
exclude:
9+
- firebase_performance_platform_interface/lib/src/pigeon/messages.pigeon.dart
10+
- firebase_performance_platform_interface/test/pigeon/test_api.dart

packages/firebase_performance/firebase_performance/android/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@ version '1.0-SNAPSHOT'
33

44
apply plugin: 'com.android.library'
55
apply from: file("local-config.gradle")
6+
apply plugin: 'kotlin-android'
67

78
buildscript {
9+
ext.kotlin_version = "1.8.22"
10+
811
repositories {
912
google()
1013
mavenCentral()
1114
}
15+
dependencies {
16+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17+
}
1218
}
1319

1420
rootProject.allprojects {
@@ -49,6 +55,15 @@ android {
4955
targetCompatibility project.ext.javaVersion
5056
}
5157

58+
sourceSets {
59+
main.java.srcDirs += "src/main/kotlin"
60+
test.java.srcDirs += "src/test/kotlin"
61+
}
62+
63+
kotlinOptions {
64+
jvmTarget = project.ext.javaVersion
65+
}
66+
5267
buildFeatures {
5368
buildConfig true
5469
}

packages/firebase_performance/firebase_performance/android/src/main/java/io/flutter/plugins/firebase/performance/FlutterFirebaseAppRegistrar.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)