Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
3c8696e
Update embrace-android-sdk from 7.9.3 to 8.0.0
embrace-ci Dec 5, 2025
a829b33
Merge branch 'main' into embrace-ci/update-embrace-android-sdk/8.0.0
benjaben Dec 15, 2025
9770e05
Fixed issues with upgrading to 8.0.0
benjaben Dec 16, 2025
1f4dfc0
Update embrace-config.json
benjaben Dec 17, 2025
2721599
Fix CI, removed 'getInstance'
benjaben Dec 17, 2025
658f1e8
Update embrace.yaml
benjaben Dec 17, 2025
0b4940e
Update embrace.yaml
benjaben Dec 17, 2025
a27c933
Update embrace.yaml
benjaben Dec 17, 2025
addab43
Update embrace.yaml
benjaben Dec 17, 2025
1040373
Update embrace.yaml
benjaben Dec 17, 2025
171ba5c
Update embrace.yaml
benjaben Dec 18, 2025
711f9b1
Update embrace.yaml
benjaben Dec 18, 2025
879bdf4
Update embrace.yaml
benjaben Dec 18, 2025
6aa65cb
Update EmbracePlugin.kt
benjaben Dec 18, 2025
33435c4
Update embrace.yaml
benjaben Dec 18, 2025
0071696
Update embrace.yaml
benjaben Dec 18, 2025
7944f45
Update embrace.yaml
benjaben Dec 18, 2025
ae0387c
Update embrace.yaml
benjaben Dec 18, 2025
ba04e9b
Update embrace.yaml
benjaben Dec 18, 2025
b578b81
Update embrace.yaml
benjaben Dec 18, 2025
f5db2e2
Update embrace.yaml
benjaben Dec 18, 2025
8cf7c96
Update embrace.yaml
benjaben Dec 18, 2025
0dc0ecb
Added logs and timeout to integration test
benjaben Dec 18, 2025
07441d6
Update app_test.dart
benjaben Dec 18, 2025
f8c0e9e
Merge branch 'main' into embrace-ci/update-embrace-android-sdk/8.0.0
benjaben Dec 18, 2025
50f3b6f
Updated timeout for tests
benjaben Dec 18, 2025
0d31c79
Update embrace.yaml
benjaben Dec 18, 2025
eaa773d
Update embrace.yaml
benjaben Dec 18, 2025
e9f53a4
Added flutter driver
benjaben Dec 18, 2025
ba5afc3
Update embrace.yaml
benjaben Dec 18, 2025
0b2fc17
Update embrace.yaml
benjaben Dec 18, 2025
171ef33
Reverted android to 7.9.3
benjaben Jan 9, 2026
0a97366
Update EmbracePlugin.kt
benjaben Jan 9, 2026
c68c0fe
Update build.gradle
benjaben Jan 9, 2026
6b6faa6
Update embrace.yaml
benjaben Jan 9, 2026
06a8c32
Update embrace.yaml
benjaben Jan 9, 2026
339974c
Removed flutter drive
benjaben Jan 9, 2026
a8829f5
android 8.0.0 sdk
benjaben Jan 10, 2026
7c1be7e
Update embrace.yaml
benjaben Jan 10, 2026
23d5ef2
Update embrace.yaml
benjaben Jan 10, 2026
74cd65e
Update embrace.yaml
benjaben Jan 10, 2026
eeeda6a
Update embrace.yaml
benjaben Jan 10, 2026
25155a9
Update embrace.yaml
benjaben Jan 10, 2026
a4122bf
Update embrace.yaml
benjaben Jan 11, 2026
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
37 changes: 32 additions & 5 deletions .github/workflows/embrace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
uses: ./.github/workflows/flutter_ci.yaml
with:
flutter_channel: stable
flutter_version: '3.35.4'
flutter_version: '3.38.5'
working_directory: embrace

# Run tests on minimum supported version
Expand All @@ -47,7 +47,7 @@
persist-credentials: false
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0
with:
flutter-version: '3.35.4'
flutter-version: '3.38.5'
- name: Flutter Doctor
run: flutter doctor -v
- name: Tests for minimum version
Expand All @@ -64,6 +64,10 @@
with:
persist-credentials: false
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0
with:
channel: stable
flutter-version: '3.38.5'
cache: true
- name: Flutter Doctor
run: flutter doctor -v
- name: Tests for release mode
Expand All @@ -80,6 +84,17 @@
working-directory: embrace/example

steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
with:
tool-cache: false
android: false
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: Checkout
uses: actions/checkout@v6
with:
Expand All @@ -103,10 +118,11 @@
with:
channel: stable
cache: true
flutter-version: '3.38.5'

- name: Flutter pub get
run: flutter pub get

- name: Accept Android SDK licenses
run: yes | "${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager" --licenses || true

Expand Down Expand Up @@ -147,7 +163,7 @@
script: echo "Generated AVD snapshot for caching."

- name: Run Flutter integration tests
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # v2.35.0
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b
with:
api-level: ${{ env.ANDROID_API_LEVEL }}
target: default
Expand All @@ -161,7 +177,18 @@
adb devices || true
flutter --version
flutter devices || true
flutter test integration_test -d emulator-5554 || { adb logcat -d > emulator_logcat.log 2>&1 || true; exit 127; }
flutter test -d emulator-5554 integration_test/app_test.dart
adb logcat -d > emulator_logcat.log 2>&1 || true

- name: Upload APK + logs (even if tests fail)
if: always()
uses: actions/upload-artifact@v6

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
with:
name: android-apk-and-logs
path: |
embrace/example/build/app/outputs/flutter-apk/*.apk
embrace/example/build/app/outputs/apk/**/*.apk
embrace/example/emulator_logcat.log

- name: Archive Test Results
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion embrace/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id "dev.flutter.flutter-gradle-plugin"
}

apply plugin: "embrace-swazzler"
apply plugin: "io.embrace.gradle"

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
Expand Down
7 changes: 5 additions & 2 deletions embrace/example/android/app/src/main/embrace-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"app_id": "YOUR_APP_ID",
"api_token": "YOUR_API_TOKEN",
"ndk_enabled": true
}
"ndk_enabled": true,
"sdk_config": {
"app_framework": "flutter"
}
}
3 changes: 2 additions & 1 deletion embrace/example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ buildscript {
}

dependencies {
classpath "io.embrace:embrace-swazzler:${findProject(':embrace_android').properties['emb_android_sdk']}"
classpath "io.embrace:embrace-gradle-plugin:${findProject(':embrace_android').properties['emb_android_sdk']}"
classpath 'com.android.tools.build:gradle:8.13.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

allprojects {
Expand Down
7 changes: 6 additions & 1 deletion embrace/example/integration_test/app_test.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
// ignore_for_file: avoid_print

import 'package:embrace_example/main.dart' as app;
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';

void main() {
print('starting smoke tests');
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

group('E2E', () {
testWidgets('smokeTest', (tester) async {
// checks the example app runs
print('starting test');
await app.main();
print('starting pump and settle test');
await tester.pumpAndSettle(const Duration(seconds: 3));
print('starting ensure visible errors test');
await tester.ensureVisible(find.text('Errors'));
});
});
Expand Down
2 changes: 1 addition & 1 deletion embrace_android/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
emb_android_sdk=7.9.3
emb_android_sdk=8.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result

import io.embrace.android.embracesdk.Embrace
import io.embrace.android.embracesdk.AppFramework
import io.embrace.android.embracesdk.network.http.HttpMethod
import io.embrace.android.embracesdk.internal.EmbraceInternalApi
import io.embrace.android.embracesdk.internal.FlutterInternalInterface
Expand Down Expand Up @@ -278,10 +277,10 @@ public class EmbracePlugin : FlutterPlugin, MethodCallHandler {
}

private fun handleAttachSdkCall(call: MethodCall, result: Result) : Unit {
val started = Embrace.getInstance().isStarted
val started = Embrace.isStarted

if (!started) {
Embrace.getInstance().start(context, AppFramework.FLUTTER)
Embrace.start(context)
}

safeFlutterInterfaceCall {
Expand Down
2 changes: 1 addition & 1 deletion embrace_dio/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (flutterVersionName == null) {
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply plugin: 'embrace-swazzler'
apply plugin: 'io.embrace.gradle'

android {
namespace "com.example.example"
Expand Down
2 changes: 1 addition & 1 deletion embrace_dio/example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:8.13.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.embrace:embrace-swazzler:${findProject(':embrace_android').properties['emb_android_sdk']}"
classpath "io.embrace:io.embrace.gradle:${findProject(':embrace_android').properties['emb_android_sdk']}"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class MethodChannelEmbrace extends EmbracePlatform {

/// Minimum Embrace Android SDK version compatible with this version of
/// the Embrace Flutter SDK
static const String minimumAndroidVersion = '7.9.3';
static const String minimumAndroidVersion = '8.0.0';

/// The method channel used to interact with the native platform.
@visibleForTesting
Expand Down