Skip to content
Closed
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
35 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
a330b7f
Update .github/workflows/embrace.yaml
benjaben Jan 12, 2026
6bef924
Removed print statements
benjaben Jan 12, 2026
03385e1
Merge branch 'embrace-ci/update-embrace-android-sdk/8.0.0' of https:/…
benjaben Jan 12, 2026
50fedae
Update embrace.yaml
benjaben Jan 12, 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
22 changes: 18 additions & 4 deletions .github/workflows/embrace.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: embrace

env:
ANDROID_API_LEVEL: 34
ANDROID_API_LEVEL: 36

on:
pull_request:
Expand Down Expand Up @@ -80,6 +80,15 @@
working-directory: embrace/example

steps:
- name: Free Disk Space (Ubuntu)
uses: AdityaGarg8/remove-unwanted-software@v5
with:
remove-dotnet: true
remove-haskell: true
remove-codeql: true
remove-docker-images: true
remove-large-packages: true

- name: Checkout
uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -107,8 +116,13 @@
- 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
- name: Install Android SDK packages needed for emulator
run: |
yes | sdkmanager --install \
"platform-tools" \
"platforms;android-${ANDROID_API_LEVEL}" \
"emulator" \
"system-images;android-${ANDROID_API_LEVEL};default;x86_64" || true

- name: Write Embrace config (from secrets)
working-directory: embrace/example
Expand Down Expand Up @@ -161,7 +175,7 @@
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 integration_test -d emulator-5554 || (adb logcat -d > emulator_logcat.log 2>&1 || true; exit 1)

- name: Archive Test Results
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Please make sure not to have a hardcoded version of the Android SDK in the build
buildscript {

dependencies {
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
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
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 @@ -270,7 +269,7 @@ public class EmbracePlugin : FlutterPlugin, MethodCallHandler {
val started = Embrace.getInstance().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