|
1 |
| -# cordova-plugin-cocoapod-support |
2 |
| -Are you tired of manually adding ios dependencies in Cordova apps? Me too. Android has Gradle support out of the box, but |
3 |
| -Cocoapods get no love. That is until now. Add this plugin as a dependency in your plugin, define your Cocoapod dependencies |
4 |
| -and that's it. |
5 |
| - |
| 1 | +# cordova-plugin-app-name |
| 2 | +I created this plugin to address the issue of spaces in the names of my Cordova apps. |
6 | 3 |
|
7 | 4 | ## How does it work?
|
8 |
| -It adds a hook that create the Podfile, updates the necessary configs and then runs pod update for you. |
| 5 | +It adds an after_prepare hook that changes the value of app_name in strings.xml for Android and updates the "Project Name" and |
| 6 | +"Project Display Name" in the plist for iOS. |
9 | 7 |
|
10 | 8 | ## How do I install it?
|
11 | 9 |
|
12 | 10 | If you're like me and using [Cordova CLI](http://cordova.apache.org/):
|
13 | 11 | ```
|
14 |
| -cordova plugin add cordova-plugin-cocoapod-support --save |
| 12 | +cordova plugin add cordova-plugin-app-name --variable APP_NAME="Look <Ma> I Got Spaces and Stuff!" |
15 | 13 | ```
|
16 | 14 |
|
17 | 15 | or
|
18 | 16 |
|
19 | 17 | ```
|
20 |
| -phonegap local plugin add cordova-plugin-cocoapod-support |
21 |
| -``` |
22 |
| - |
23 |
| -## How do I use it? Checkout this sample plugin.xml |
24 |
| -```xml |
25 |
| -<?xml version='1.0' encoding='UTF-8'?> |
26 |
| -<plugin id="cordova-plugin-withpods" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0"> |
27 |
| - <name>Plugin With Pods</name> |
28 |
| - <author>Carlos "blakgeek" Lawton</author> |
29 |
| - <description> |
30 |
| - A Cordova/PhoneGap demostrating the use of cocoapod dependencies. |
31 |
| - </description> |
32 |
| - <keywords>cordova, ios, cocoapods</keywords> |
33 |
| - <license>MIT</license> |
34 |
| - <engines> |
35 |
| - <engine name="cordova" version=">=3.0.0"/> |
36 |
| - </engines> |
37 |
| - |
38 |
| - <platform name="ios"> |
39 |
| - <pod id="FBSDKCoreKit" version="1.0.0"/> |
40 |
| - <pod id="FBSDKShareKit"/> |
41 |
| - <pod id="FBSDKLoginKit"/> |
42 |
| - </platform> |
43 |
| -</plugin> |
| 18 | +phonegap local plugin add cordova-plugin-app-name --variable APP_NAME="Look <Ma> I Got Spaces and Stuff!" |
44 | 19 | ```
|
45 | 20 |
|
46 |
| -or have a look at [the demo plugin](https://github.com/blakgeek/cordova-plugin-withpods). |
47 |
| - |
48 |
| - |
49 |
| -##TODO: |
50 |
| -# update with examples of all support pod attributes (git, podspec, path, subspec, configuration(s) ) |
51 |
| -# a |
| 21 | +## How do I use it? |
| 22 | +Um ... See above :) |
52 | 23 |
|
53 | 24 |
|
54 | 25 |
|
|
0 commit comments