Explorar o código

Invert iOS procedures for package variants

NonlyNerd %!s(int64=5) %!d(string=hai) anos
pai
achega
fb04e37bbc
Modificáronse 1 ficheiros con 23 adicións e 23 borrados
  1. 23 23
      README.md

+ 23 - 23
README.md

@@ -91,29 +91,7 @@ Installation of `FlutterFFmpeg` using `pub` enables the default package, which i
 
     ```
 
-##### 2.1.2 iOS (Flutter < 1.20.x)
-
-- Edit `ios/Podfile` file and modify the default `# Plugin Pods` block as follows. 
-  Do not forget to specify package name in `<package name>` section.
-
-    ```
-    # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
-    # referring to absolute paths on developers' machines.
-    system('rm -rf .symlinks')
-    system('mkdir -p .symlinks/plugins')
-    plugin_pods = parse_KV_file('../.flutter-plugins')
-    plugin_pods.each do |name, path|
-      symlink = File.join('.symlinks', 'plugins', name)
-      File.symlink(path, symlink)
-      if name == 'flutter_ffmpeg'
-          pod name+'/<package name>', :path => File.join(symlink, 'ios')
-      else
-          pod name, :path => File.join(symlink, 'ios')
-      end
-    end
-    ```
-    
-##### 2.1.3 iOS (Flutter >= 1.20.x)
+##### 2.1.2 iOS (Flutter >= 1.20.x)
 
 - Edit `ios/Podfile` and add the following block **before** `target 'Runner do` section :
 
@@ -155,6 +133,28 @@ Installation of `FlutterFFmpeg` using `pub` enables the default package, which i
 within `target 'Runner' do` block. In that case, it is mandatory that the added function is
 named `flutter_install_ios_plugin_pods` and that you **do not** make an explicit call within that block.
 
+##### 2.1.3 iOS (Flutter < 1.20.x)
+
+- Edit `ios/Podfile` file and modify the default `# Plugin Pods` block as follows. 
+  Do not forget to specify package name in `<package name>` section.
+
+    ```
+    # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
+    # referring to absolute paths on developers' machines.
+    system('rm -rf .symlinks')
+    system('mkdir -p .symlinks/plugins')
+    plugin_pods = parse_KV_file('../.flutter-plugins')
+    plugin_pods.each do |name, path|
+      symlink = File.join('.symlinks', 'plugins', name)
+      File.symlink(path, symlink)
+      if name == 'flutter_ffmpeg'
+          pod name+'/<package name>', :path => File.join(symlink, 'ios')
+      else
+          pod name, :path => File.join(symlink, 'ios')
+      end
+    end
+    ```
+
 ##### 2.1.4 Package Names
 
 The following table shows all package names defined for `flutter_ffmpeg`.