forked from storesafe/cordova-sqlite-storage
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cordova-sqlite-common' into new-common-src
- Loading branch information
Showing
29 changed files
with
1,759 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: objective-c | ||
git: | ||
depth: 2 | ||
node_js: | ||
- "0.10" | ||
install: | ||
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- npm install -g cordova-paramedic | ||
- npm install -g cordova | ||
- npm install -g ios-sim | ||
script: | ||
- cordova-paramedic --platform ios --plugin ${TRAVIS_BUILD_DIR} | ||
- cp ${TRAVIS_BUILD_DIR}/spec/www/spec/simple-test.js ${TRAVIS_BUILD_DIR}/tests/tests.js | ||
- cordova-paramedic --platform ios --plugin ${TRAVIS_BUILD_DIR} --timeout 3600000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
machine: | ||
environment: | ||
ANDROID_NDK_HOME: $ANDROID_NDK | ||
|
||
dependencies: | ||
pre: | ||
- npm install -g cordova-paramedic | ||
- npm install -g cordova | ||
|
||
test: | ||
pre: | ||
- emulator -avd circleci-android21 -no-audio -no-window: | ||
background: true | ||
parallel: true | ||
- circle-android wait-for-boot | ||
override: | ||
- cordova-paramedic --platform android --plugin . | ||
- cp spec/www/spec/simple-test.js tests/tests.js | ||
- cordova-paramedic --platform android --plugin . --timeout 3600000 | ||
- cp spec/www/spec/legacy.js tests/tests.js | ||
- cordova-paramedic --platform android --plugin . --timeout 7200000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "cordova-sqlite-common", | ||
"version": "0.7.0-dev", | ||
"description": "Native interface to SQLite for PhoneGap/Cordova (common version-limited functionality)", | ||
"cordova": { | ||
"id": "cordova-sqlite-common", | ||
"platforms": [ | ||
"android", | ||
"ios", | ||
"windows", | ||
"amazon-fireos" | ||
] | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/litehelpers/cordova-sqlite-common.git" | ||
}, | ||
"keywords": [ | ||
"sqlite", | ||
"ecosystem:cordova", | ||
"cordova-android", | ||
"cordova-ios", | ||
"cordova-windows", | ||
"cordova-amazon-fireos" | ||
], | ||
"engines": [ | ||
{ | ||
"name": "cordova", | ||
"version": ">=3.3.0" | ||
} | ||
], | ||
"author": "various", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/litehelpers/cordova-sqlite-common/issues" | ||
}, | ||
"homepage": "https://github.com/litehelpers/cordova-sqlite-common" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* 'use strict'; */ | ||
|
||
var MYTIMEOUT = 12000; | ||
|
||
var isAndroid = /Android/.test(navigator.userAgent); | ||
var isWP8 = /IEMobile/.test(navigator.userAgent); // Matches WP(7/8/8.1) | ||
//var isWindows = /Windows NT/.test(navigator.userAgent); // Windows [NT] (8.1) | ||
var isWindows = /Windows /.test(navigator.userAgent); // Windows (8.1) | ||
//var isWindowsPC = /Windows NT/.test(navigator.userAgent); // Windows [NT] (8.1) | ||
//var isWindowsPhone_8_1 = /Windows Phone 8.1/.test(navigator.userAgent); // Windows Phone 8.1 | ||
//var isIE = isWindows || isWP8 || isWindowsPhone_8_1; | ||
var isIE = isWindows || isWP8; | ||
var isWebKit = !isIE; // TBD [Android or iOS] | ||
|
||
window.hasBrowser = true; | ||
window.hasWebKitBrowser = isWebKit; | ||
|
||
describe('check startup', function() { | ||
it('receives deviceready event', function(done) { | ||
expect(true).toBe(true); | ||
document.addEventListener("deviceready", function() { | ||
done(); | ||
}); | ||
}, MYTIMEOUT); | ||
|
||
it('has openDatabase', function() { | ||
if (isWebKit) expect(window.openDatabase).toBeDefined(); | ||
expect(window.sqlitePlugin).toBeDefined(); | ||
expect(window.sqlitePlugin.openDatabase).toBeDefined(); | ||
}); | ||
}); | ||
|
||
/* vim: set expandtab : */ |
Oops, something went wrong.