Skip to content

Commit

Permalink
chore(ios): remove unused code from old migration
Browse files Browse the repository at this point in the history
  • Loading branch information
dylancom committed Dec 9, 2024
1 parent 19e9379 commit 71d089b
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 436 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
#import <React/RCTUtils.h>

#import "RNAppModule.h"
#import "RNJSON.h"
#import "RNMeta.h"
#import "RNPreferences.h"
#import "RNRCTEventEmitter.h"
#import "RNSharedUtils.h"

Expand Down Expand Up @@ -51,58 +48,6 @@ - (void)invalidate {
[[RNRCTEventEmitter shared] invalidate];
}

#pragma mark -
#pragma mark META Methods

RCT_EXPORT_METHOD(metaGetAll
: (RCTPromiseResolveBlock)resolve rejecter
: (RCTPromiseRejectBlock)reject) {
resolve([RNMeta getAll]);
}

#pragma mark -
#pragma mark JSON Methods

RCT_EXPORT_METHOD(jsonGetAll
: (RCTPromiseResolveBlock)resolve rejecter
: (RCTPromiseRejectBlock)reject) {
resolve([[RNJSON shared] getAll]);
}

#pragma mark -
#pragma mark Preference Methods

RCT_EXPORT_METHOD(preferencesSetBool
: (NSString *)key boolValue
: (BOOL)boolValue resolver
: (RCTPromiseResolveBlock)resolve rejecter
: (RCTPromiseRejectBlock)reject) {
[[RNPreferences shared] setBooleanValue:key boolValue:boolValue];
resolve([NSNull null]);
}

RCT_EXPORT_METHOD(preferencesSetString
: (NSString *)key stringValue
: (NSString *)stringValue resolver
: (RCTPromiseResolveBlock)resolve rejecter
: (RCTPromiseRejectBlock)reject) {
[[RNPreferences shared] setStringValue:key stringValue:stringValue];
resolve([NSNull null]);
}

RCT_EXPORT_METHOD(preferencesGetAll
: (RCTPromiseResolveBlock)resolve rejecter
: (RCTPromiseRejectBlock)reject) {
resolve([[RNPreferences shared] getAll]);
}

RCT_EXPORT_METHOD(preferencesClearAll
: (RCTPromiseResolveBlock)resolve rejecter
: (RCTPromiseRejectBlock)reject) {
[[RNPreferences shared] clearAll];
resolve([NSNull null]);
}

#pragma mark -
#pragma mark Event Methods

Expand Down
34 changes: 0 additions & 34 deletions ios/RNGoogleMobileAds/common/RNJSON.h

This file was deleted.

93 changes: 0 additions & 93 deletions ios/RNGoogleMobileAds/common/RNJSON.m

This file was deleted.

30 changes: 0 additions & 30 deletions ios/RNGoogleMobileAds/common/RNMeta.h

This file was deleted.

61 changes: 0 additions & 61 deletions ios/RNGoogleMobileAds/common/RNMeta.m

This file was deleted.

44 changes: 0 additions & 44 deletions ios/RNGoogleMobileAds/common/RNPreferences.h

This file was deleted.

Loading

0 comments on commit 71d089b

Please sign in to comment.