Skip to content

Commit 060e175

Browse files
committed
First commit
0 parents  commit 060e175

6 files changed

+55
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Mac crap
2+
.DS_Store

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Native Transitions Plugin for Apache Cordova
2+
3+
Coming soon.
4+
5+
## License
6+
7+
[MIT License](http://ilee.mit-license.org)

plugin.xml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="nativetransitions" version="0.0.1">
3+
<name>Native Transitions</name>
4+
<author>Lee Crossley (http://ilee.co.uk/)</author>
5+
<description>Cordova / PhoneGap Plugin for native transitions.</description>
6+
<keywords>cordova, transition, transitions, page, animate, animation</keywords>
7+
<engines>
8+
<engine name="cordova" version=">=3.0.0" />
9+
</engines>
10+
<js-module src="www/nativetransitions.js" name="NativeTransitions">
11+
<clobbers target="nativetransitions" />
12+
</js-module>
13+
<platform name="ios">
14+
<config-file target="config.xml" parent="/*">
15+
<feature name="NativeTransitions">
16+
<param name="ios-package" value="NativeTransitions" />
17+
</feature>
18+
</config-file>
19+
<header-file src="src/ios/NativeTransitions.h" />
20+
<source-file src="src/ios/NativeTransitions.m" />
21+
</platform>
22+
</plugin>

src/ios/NativeTransitions.h

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//
2+
// NativeTransitions.h
3+
// Copyright (c) 2013 Lee Crossley - http://ilee.co.uk
4+
//

src/ios/NativeTransitions.m

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//
2+
// NativeTransitions.m
3+
// Copyright (c) 2013 Lee Crossley - http://ilee.co.uk
4+
//

www/nativetransitions.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
var exec = require("cordova/exec");
3+
4+
var NativeTransitions = function () {
5+
this.name = "NativeTransitions";
6+
};
7+
8+
NativeTransitions.prototype.right = function (success, failure) {
9+
exec(success, failure, "NativeTransitions", "right", []);
10+
};
11+
12+
NativeTransitions.prototype.left = function (success, failure) {
13+
exec(success, failure, "NativeTransitions", "right", []);
14+
};
15+
16+
module.exports = new NativeTransitions();

0 commit comments

Comments
 (0)