Skip to content

Commit 08ecc50

Browse files
authored
feat(remote_config): add support for Pigeon. Update iOS to Swift and Android to Swift (#17489)
* feat(remote_config): add support for Pigeon. Update iOS to Swift and Android to Swift * chore: migrate ios implementation to Swift * chore: add license header to FirebaseRemoteConfigUtils.swift * chore: reference `binaryMessenger` * chore: fix ci * chore: remove uncecessary log
1 parent 6068edf commit 08ecc50

33 files changed

+2664
-868
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_remote_config_platform_interface/lib/src/pigeon/messages.pigeon.dart
10+
- firebase_remote_config_platform_interface/test/pigeon/test_api.dart

packages/firebase_remote_config/firebase_remote_config/android/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ apply plugin: 'com.android.library'
55
apply from: file("local-config.gradle")
66

77
buildscript {
8+
ext.kotlin_version = "1.8.22"
89
repositories {
910
google()
1011
mavenCentral()
@@ -18,6 +19,8 @@ rootProject.allprojects {
1819
}
1920
}
2021

22+
apply plugin: 'kotlin-android'
23+
2124
def firebaseCoreProject = findProject(':firebase_core')
2225
if (firebaseCoreProject == null) {
2326
throw new GradleException('Could not find the firebase_core FlutterFire plugin, have you added it as a dependency in your pubspec?')
@@ -44,11 +47,20 @@ android {
4447
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4548
}
4649

50+
kotlinOptions {
51+
jvmTarget = JavaVersion.VERSION_17
52+
}
53+
4754
compileOptions {
4855
sourceCompatibility project.ext.javaVersion
4956
targetCompatibility project.ext.javaVersion
5057
}
5158

59+
sourceSets {
60+
main.java.srcDirs += "src/main/kotlin"
61+
test.java.srcDirs += "src/test/kotlin"
62+
}
63+
5264
buildFeatures {
5365
buildConfig = true
5466
}

0 commit comments

Comments
 (0)