Skip to content

Feat/screen render to dev #605

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

Open
wants to merge 45 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c5111cf
feat: add instabug_screen_render_manager which control screen render …
AndrewAminInstabug Jun 6, 2025
7064e0e
chore: attach screen render collector to the app lifecycle and ui tra…
AndrewAminInstabug Jun 18, 2025
2faf643
chore: add unit tests for app lifecycle
AndrewAminInstabug Jun 18, 2025
21cc57b
chore: fix related uint testing files ,
AndrewAminInstabug Jun 19, 2025
35a0c5a
chore: fix ci failed jobs
AndrewAminInstabug Jun 21, 2025
953cb53
chore: fix ci failed jobs
AndrewAminInstabug Jun 22, 2025
e576a89
chore: add unit test cases for instabug_navigator_observer
AndrewAminInstabug Jun 22, 2025
ec2b04b
chore: add instabug_screen_render_manager_test_manual_mocks.dart
AndrewAminInstabug Jun 22, 2025
608f5e5
chore: run dart format .
AndrewAminInstabug Jun 22, 2025
dce7286
chore: run dart format .
AndrewAminInstabug Jun 22, 2025
a53c8c0
Merge remote-tracking branch 'origin/dev' into feat/screen-render
AndrewAminInstabug Jun 25, 2025
83cbbba
chore: add native feature apis
AndrewAminInstabug Jun 28, 2025
7a2ca11
chore: fix some capture logic, add unit test cases.
AndrewAminInstabug Jun 30, 2025
b804d45
chore: merge screen_render_native_apis branch
AndrewAminInstabug Jun 30, 2025
39bdd72
chore: apply flutter 2.10.5
AndrewAminInstabug Jul 1, 2025
2ae2acc
fix: dart format
ahmedAlaaInstabug Jul 1, 2025
852884e
Merge pull request #582 from Instabug/feat/screen-render
AndrewAminInstabug Jul 2, 2025
86cb8be
chore: add ios store pod
AndrewAminInstabug Jul 2, 2025
d9acd3a
chore: add store API in Flutter side
AndrewAminInstabug Jul 2, 2025
b183a43
chore: add store API in iOS side
AndrewAminInstabug Jul 9, 2025
5c1551b
chore: add store API in Android side
AndrewAminInstabug Jul 13, 2025
a39ea76
chore: remove logs
AndrewAminInstabug Jul 13, 2025
cdfea37
chore: add 2.10.5 changes
AndrewAminInstabug Jul 13, 2025
79d152c
chore: add 2.10.5 changes
AndrewAminInstabug Jul 13, 2025
4cdf341
fix: flutter format
ahmedAlaaInstabug Jul 14, 2025
c21725e
Merge pull request #601 from Instabug/feat/screen-render-local-store
AndrewAminInstabug Jul 15, 2025
b8d6815
chore: apply pr comments & update the captured timestamp to be since …
AndrewAminInstabug Jul 16, 2025
c1d7ff5
fix: dart format
ahmedAlaaInstabug Jul 17, 2025
37de671
Merge pull request #603 from Instabug/feat/screen-render-local-store
AndrewAminInstabug Jul 17, 2025
db97a53
chore: update logic in the sample app
AndrewAminInstabug Jul 17, 2025
04b5972
fix: dart format
ahmedAlaaInstabug Jul 17, 2025
50d35c1
Merge pull request #604 from Instabug/feat/screen-render-local-store
AndrewAminInstabug Jul 17, 2025
e07363c
Merge remote-tracking branch 'origin/dev' into feat/screen-render-to-dev
AndrewAminInstabug Jul 20, 2025
d84e96f
chore: update capture screen rendering logic
AndrewAminInstabug Jul 28, 2025
2266836
Merge pull request #610 from Instabug/feat/screen-render-testing
AndrewAminInstabug Jul 28, 2025
751cdaa
fix: delayed frames summation
AndrewAminInstabug Jul 29, 2025
5485132
chore: update Instabug dependency to version 15.1.17 in Podfile and r…
AndrewAminInstabug Jul 29, 2025
a49ae10
prepare for ci
AndrewAminInstabug Jul 30, 2025
67c817b
Merge pull request #613 from Instabug/feat/screen-render-testing
AndrewAminInstabug Jul 30, 2025
6227629
update ios pods
AndrewAminInstabug Jul 30, 2025
e7c05cf
chore: update iOS pods
AndrewAminInstabug Jul 31, 2025
7f301c1
chore: separate the start and end methods of screenRenderCollector
AndrewAminInstabug Aug 1, 2025
e01e271
chore: format code
AndrewAminInstabug Aug 3, 2025
2018d9f
chore: run mockito on 2.10.5
AndrewAminInstabug Aug 4, 2025
55340b3
Merge pull request #617 from Instabug/feat/screen-render-updates
AndrewAminInstabug Aug 5, 2025
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
12 changes: 8 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.instabug.flutter'
version '15.0.2'
version '14.3.0'

buildscript {
repositories {
Expand All @@ -17,11 +17,16 @@ rootProject.allprojects {
google()
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
url "https://mvn.instabug.com/nexus/repository/instabug-internal/"
credentials {
username "instabug"
password System.getenv("INSTABUG_REPOSITORY_PASSWORD")
}
}
}
}


apply plugin: 'com.android.library'

android {
Expand All @@ -47,11 +52,10 @@ android {
}

dependencies {
api 'com.instabug.library:instabug:15.0.2'
api 'com.instabug.library:instabug:15.0.2.7020723-SNAPSHOT'
testImplementation 'junit:junit:4.13.2'
testImplementation "org.mockito:mockito-inline:3.12.1"
testImplementation "io.mockk:mockk:1.13.13"

}

// add upload_symbols task
Expand Down
1 change: 0 additions & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Build;
import android.util.Log;
import android.view.Display;
import android.view.View;

import androidx.annotation.NonNull;
Expand Down Expand Up @@ -73,7 +75,14 @@ public Bitmap call() {
}
};

ApmApi.init(messenger);
Callable<Float> refreshRateProvider = new Callable<Float>() {
@Override
public Float call(){
return getRefreshRate();
}
};

ApmApi.init(messenger, refreshRateProvider);
BugReportingApi.init(messenger);
CrashReportingApi.init(messenger);
FeatureRequestsApi.init(messenger);
Expand All @@ -99,4 +108,20 @@ private static Bitmap takeScreenshot(FlutterRenderer renderer) {
return null;
}
}

private static float getRefreshRate() {
float refreshRate = 60f;

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
final Display display = activity.getDisplay();
if (display != null) {
refreshRate = display.getRefreshRate();
}
} else {
refreshRate = activity.getWindowManager().getDefaultDisplay().getRefreshRate();
}

return refreshRate;
}

}
Loading