updated plugin.xml and cordova references in ios files

This commit is contained in:
Steven Gill 2013-05-20 14:04:50 -07:00
parent 3f9a4738e1
commit 4e9ad7d5e0
4 changed files with 18 additions and 15 deletions

View File

@ -7,23 +7,28 @@ id="org.apache.cordova.core.InAppBrowser"
<name>InAppBrowser</name>
<js-module src="www/InAppBrowser.js" name="InAppBrowser">
<clobbers target="window.InAppBrowser" />
<clobbers target="window.open" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/cordova/plugins">
<plugin name="InAppBrowser" value="org.apache.cordova.core.InAppBrowser"/>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="InAppBrowser">
<param name="android-package" value="org.apache.cordova.core.InAppBrowser"/>
</feature>
</config-file>
<source-file src="InAppBrowser.java" target-dir="org/apache/cordova/core" />
<source-file src="src/android/InAppBrowser.java" target-dir="org/apache/cordova/core" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="plugins">
<plugin name="InAppBrowser" value="CDVInAppBrowser" />
<config-file target="config.xml" parent="/*">
<feature name="InAppBrowser">
<param name="ios-package" value="CDVInAppBrowser" />
</feature>
</config-file>
<header-file src="src/ios/CDVInAppBrowser.h" />
<source-file src="src/ios/CDVInAppBrowser.m" />
</platform>

View File

@ -21,8 +21,6 @@ package org.apache.cordova.core;
import java.util.HashMap;
import java.util.StringTokenizer;
import org.apache.cordova.Config;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaPlugin;
import org.apache.cordova.api.LOG;

View File

@ -17,10 +17,10 @@
under the License.
*/
#import "CDVPlugin.h"
#import "CDVInvokedUrlCommand.h"
#import "CDVScreenOrientationDelegate.h"
#import "CDVWebViewDelegate.h"
#import <Cordova/CDVPlugin.h>
#import <Cordova/CDVInvokedUrlCommand.h>
#import <Cordova/CDVScreenOrientationDelegate.h>
#import <Cordova/CDVWebViewDelegate.h>
@class CDVInAppBrowserViewController;

View File

@ -18,9 +18,9 @@
*/
#import "CDVInAppBrowser.h"
#import "CDVPluginResult.h"
#import "CDVUserAgentUtil.h"
#import "CDVJSON.h"
#import <Cordova/CDVPluginResult.h>
#import <Cordova/CDVUserAgentUtil.h>
#import <Cordova/CDVJSON.h>
#define kInAppBrowserTargetSelf @"_self"
#define kInAppBrowserTargetSystem @"_system"