This file contains hidden or 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
Write-Output "Checking if the app has been started" | |
$resultCode = -1 | |
& adb shell ps 2>&1 | % {if($_.contains("com.red_folder.phonegap.plugin.backgroundservice.sample")) { Write-Output "App has started"; $resultCode = 0 } } | |
exit $resultCode |
This file contains hidden or 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
adb shell am start -n com.red_folder.phonegap.plugin.backgroundservice.sample/com.red_folder.phonegap.plugin.backgroundservice.sample.BackgroundServicePluginSampleActivity |
This file contains hidden or 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
clean debug install |
This file contains hidden or 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
android update project -p . |
This file contains hidden or 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
del /Q "%workspace%\libs\*" | |
copy /b "C:\JavaWorkspace\Libraries\Cordova\cordova-%CORDOVAVERSION%.jar" "%workspace%\libs\" | |
copy /b "%BUILDOUTPUTPATH%\backgroundserviceplugin-%PLUGINVERSION%.jar" "%workspace%\libs\" | |
del /Q "%workspace%\assets\www\jasmine\src\*" | |
copy /b "%workspace%\assets\www\%PLUGINVERSION%\backgroundService*.js" "%workspace%\assets\www\jasmine\src\backgroundService.js" | |
copy /b "%workspace%\assets\www\%PLUGINVERSION%\cordova*.js" "%workspace%\assets\www\jasmine\src\cordova.js" | |
copy /b "%workspace%\assets\www\%PLUGINVERSION%\myService*.js" "%workspace%\assets\www\jasmine\src\myService.js" |
This file contains hidden or 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
/* | |
* Create a reference myService | |
*/ | |
var myService = cordova.require('cordova/plugin/myService'); | |
/* | |
* Suite of tests to start the Background Service | |
* Jasmine "describe" section | |
*/ | |
describe("When Plugin not running", function() { |
This file contains hidden or 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
copy "%WORKSPACE%\bin\classes.jar" "%BUILDOUTPUTPATH%\backgroundserviceplugin-%PLUGINVERSION%.jar" |
This file contains hidden or 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
clean debug |
This file contains hidden or 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
android update lib-project -p . |
This file contains hidden or 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
copy "%WORKSPACE%\src\com\red_folder\phonegap\plugin\backgroundservice\BackgroundServicePlugin.v%PLUGINVERSION%.txt" "%WORKSPACE%\src\com\red_folder\phonegap\plugin\backgroundservice\BackgroundServicePlugin.java" |