This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update path provider to new plugin registration. (#30)
- Loading branch information
Showing
14 changed files
with
218 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
...es/path-provider/example/android/app/src/main/java/io/flutter/plugins/PluginRegistry.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
294 changes: 153 additions & 141 deletions
294
packages/path-provider/example/ios/Pods/Pods.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
#include "AppDelegate.h" | ||
#include "PluginRegistry.h" | ||
#include "GeneratedPluginRegistrant.h" | ||
|
||
@implementation AppDelegate { | ||
PluginRegistry *plugins; | ||
} | ||
@implementation AppDelegate | ||
|
||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | ||
// Override point for customization after application launch. | ||
FlutterViewController *flutterController = | ||
(FlutterViewController *)self.window.rootViewController; | ||
plugins = [[PluginRegistry alloc] initWithController:flutterController]; | ||
return YES; | ||
[GeneratedPluginRegistrant registerWithRegistry:self]; | ||
return [super application:application didFinishLaunchingWithOptions:launchOptions]; | ||
} | ||
|
||
@end |
16 changes: 16 additions & 0 deletions
16
packages/path-provider/example/ios/Runner/GeneratedPluginRegistrant.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Generated file. Do not edit. | ||
// | ||
|
||
#ifndef GeneratedPluginRegistrant_h | ||
#define GeneratedPluginRegistrant_h | ||
|
||
#import <Flutter/Flutter.h> | ||
|
||
#import "PathProviderPlugin.h" | ||
|
||
@interface GeneratedPluginRegistrant : NSObject | ||
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry; | ||
@end | ||
|
||
#endif /* GeneratedPluginRegistrant_h */ |
13 changes: 13 additions & 0 deletions
13
packages/path-provider/example/ios/Runner/GeneratedPluginRegistrant.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// Generated file. Do not edit. | ||
// | ||
|
||
#import "GeneratedPluginRegistrant.h" | ||
|
||
@implementation GeneratedPluginRegistrant | ||
|
||
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry { | ||
[PathProviderPlugin registerWithRegistrar:[registry registrarForPlugin:@"PathProviderPlugin"]]; | ||
} | ||
|
||
@end |
20 changes: 0 additions & 20 deletions
20
packages/path-provider/example/ios/Runner/PluginRegistry.h
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
packages/path-provider/example/ios/Runner/PluginRegistry.m
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: path_provider | ||
|
||
version: 0.1.3 | ||
version: 0.2.0 | ||
description: A Flutter plugin for getting commonly used locations on the filesystem. | ||
author: Flutter Team <[email protected]> | ||
homepage: https://github.com/flutter/plugins | ||
|
@@ -15,4 +15,4 @@ dependencies: | |
sdk: flutter | ||
|
||
dev_dependencies: | ||
test: | ||
test: |