Skip to content

Commit daaedc0

Browse files
committed
fix: remove hot launch type
1 parent e73f473 commit daaedc0

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

android/src/main/java/com/instabug/reactlibrary/ArgsRegistry.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,13 @@ static Map<String, Object> getAll() {
243243

244244
public static ArgsMap<String> launchType = new ArgsMap<String>() {{
245245
put("cold", SessionMetadata.LaunchType.COLD);
246-
put("hot",SessionMetadata.LaunchType.HOT );
247246
put("warm",SessionMetadata.LaunchType.WARM );
248247
}};
249248

250249
// Temporary workaround to be removed in future release
251250
// This is used for mapping native `LaunchType` values into React Native enum values.
252251
public static HashMap<String,String> launchTypeReversed = new HashMap<String,String>() {{
253252
put(SessionMetadata.LaunchType.COLD,"cold");
254-
put(SessionMetadata.LaunchType.HOT,"hot" );
255253
put(SessionMetadata.LaunchType.WARM,"warm" );
256254
}};
257255

android/src/main/java/com/instabug/reactlibrary/RNInstabugSessionReplayModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public ReadableMap getSessionMetadataMap(SessionMetadata sessionMetadata){
135135
if (launchType != null) {
136136
params.putString("launchType",ArgsRegistry.launchTypeReversed.get(sessionMetadata.getLaunchType()) );
137137
} else {
138-
params.putString("launchType","" );
138+
params.putString("launchType","unknown");
139139
}
140140

141141
if (launchDuration != null) {

ios/RNInstabug/ArgsRegistry.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ + (ArgsDictionary *)nonFatalExceptionLevel {
244244

245245
+ (ArgsDictionary *) launchType {
246246
return @{
247-
@"hot": @(LaunchTypeHot),
248247
@"cold": @(LaunchTypeCold),
249248
@"unknown":@(LaunchTypeUnknown)
250249
};

src/native/NativeConstants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ interface NativeStringKey {
191191
}
192192

193193
interface NativeLaunchType {
194-
hot: any;
195194
cold: any;
196195
warm: any;
197196
unknown: any;

src/utils/Enums.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ export enum StringKey {
234234
}
235235

236236
export enum LaunchType {
237-
hot = constants.hot,
238237
cold = constants.cold,
239238
/**
240239
* iOS only

0 commit comments

Comments
 (0)