Skip to content

Commit

Permalink
refactor: rename MLRNImageUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Nov 27, 2024
1 parent c57b99a commit d89dcef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ios/MLRN/RNMBImageUtils.h → ios/MLRN/MLRNImageUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

@interface RNMBImageUtils : NSObject
@interface MLRNImageUtils : NSObject

+(NSString *)createTempFile:(UIImage *)image;
+(NSString *)createBase64:(UIImage *)image;
Expand Down
6 changes: 3 additions & 3 deletions ios/MLRN/RNMBImageUtils.m → ios/MLRN/MLRNImageUtils.m
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//
// RNMBImageUtils.m
// MLRNImageUtils.m
// MLRN
//
// Created by Nick Italiano on 1/18/18.
// Copyright © 2018 Mapbox Inc. All rights reserved.
//

#import "RNMBImageUtils.h"
#import "MLRNImageUtils.h"

@implementation RNMBImageUtils
@implementation MLRNImageUtils

+ (NSString *)createTempFile:(UIImage *)image
{
Expand Down
4 changes: 2 additions & 2 deletions ios/MLRN/MLRNMapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import "MLRNMapView.h"
#import "CameraUpdateQueue.h"
#import "MLRNUtils.h"
#import "RNMBImageUtils.h"
#import "MLRNImageUtils.h"
#import "MLRNImages.h"
#import <React/UIView+React.h>
#import "MLRNNativeUserLocation.h"
Expand Down Expand Up @@ -403,7 +403,7 @@ - (NSString *)takeSnap:(BOOL)writeToDisk
[self drawViewHierarchyInRect:self.bounds afterScreenUpdates:YES];
UIImage *snapshot = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return writeToDisk ? [RNMBImageUtils createTempFile:snapshot] : [RNMBImageUtils createBase64:snapshot];
return writeToDisk ? [MLRNImageUtils createTempFile:snapshot] : [MLRNImageUtils createBase64:snapshot];
}

- (CLLocationDistance)getMetersPerPixelAtLatitude:(double)latitude withZoom:(double)zoomLevel
Expand Down
6 changes: 3 additions & 3 deletions ios/MLRN/MLRNSnapshotModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import "MLRNSnapshotModule.h"
#import "MLRNUtils.h"
#import "RNMBImageUtils.h"
#import "MLRNImageUtils.h"
@import MapLibre;

@implementation MLRNSnapshotModule
Expand Down Expand Up @@ -37,9 +37,9 @@ + (BOOL)requiresMainQueueSetup

NSString *result = nil;
if ([jsOptions[@"writeToDisk"] boolValue]) {
result = [RNMBImageUtils createTempFile:snapshot.image];
result = [MLRNImageUtils createTempFile:snapshot.image];
} else {
result = [RNMBImageUtils createBase64:snapshot.image];
result = [MLRNImageUtils createBase64:snapshot.image];
}

resolve(result);
Expand Down

0 comments on commit d89dcef

Please sign in to comment.