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> <name>InAppBrowser</name>
<js-module src="www/InAppBrowser.js" name="InAppBrowser"> <js-module src="www/InAppBrowser.js" name="InAppBrowser">
<clobbers target="window.InAppBrowser" /> <clobbers target="window.open" />
</js-module> </js-module>
<!-- android --> <!-- android -->
<platform name="android"> <platform name="android">
<config-file target="res/xml/config.xml" parent="/cordova/plugins"> <config-file target="res/xml/config.xml" parent="/*">
<plugin name="InAppBrowser" value="org.apache.cordova.core.InAppBrowser"/> <feature name="InAppBrowser">
<param name="android-package" value="org.apache.cordova.core.InAppBrowser"/>
</feature>
</config-file> </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> </platform>
<!-- ios --> <!-- ios -->
<platform name="ios"> <platform name="ios">
<config-file target="config.xml" parent="plugins"> <config-file target="config.xml" parent="/*">
<plugin name="InAppBrowser" value="CDVInAppBrowser" /> <feature name="InAppBrowser">
<param name="ios-package" value="CDVInAppBrowser" />
</feature>
</config-file> </config-file>
<header-file src="src/ios/CDVInAppBrowser.h" /> <header-file src="src/ios/CDVInAppBrowser.h" />
<source-file src="src/ios/CDVInAppBrowser.m" /> <source-file src="src/ios/CDVInAppBrowser.m" />
</platform> </platform>

View File

@ -21,8 +21,6 @@ package org.apache.cordova.core;
import java.util.HashMap; import java.util.HashMap;
import java.util.StringTokenizer; 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.CallbackContext;
import org.apache.cordova.api.CordovaPlugin; import org.apache.cordova.api.CordovaPlugin;
import org.apache.cordova.api.LOG; import org.apache.cordova.api.LOG;

View File

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

View File

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