Inform how warm or cold it is today than yesterday.
You have to run server before start mobile application.
download source
$ git clone https://github.com/WizardFactory/TodayWeather.git
Make sure you have Node.js
move to server folder
$ cd TodayWeather/server/
install node modules
$ npm install
run
$ npm install
Make sure you have ionic
move to mobile folder
$ cd TodayWeather/client/
ionic clear and reinstall plugins and platforms
$ ionic state reset
add crosswalk browser for android
ionic browser add crosswalk
install gulp and bower
$ npm install
install www/lib
$ bower install
hook up with IONIC.IO
$ ionic io init
sass preprocessing - it makes www/css/ionic.app.css
$ gulp sass
build and run application for iOS
$ ionic run ios
check version config.xml, package.json
build
$ cordova plugin rm cordova-plugin-console
$ ionic build --release android
$ ionic build --release ios
copy widget files and overwrite strings.xml
cd platforms/android/src/net/wizardfactory/todayweather/
cp -af ../../../../../../../android/src/net/wizardfactory/todayweather/widget ./
cd -
cd platforms/android/res/drawable-xhdpi
cp ../../../../../android/res/drawable-xhdpi/* ./
cd -
cd platforms/android/res
cp -af ../../../../android/res/layout ./
cp ../../../../android/res/xml/w2x1_widget_provider.xml xml/
cd -
cd platforms/android/res
cp ../../../../android/res/values/strings.xml values/strings.xml
add activity and service for widget
cd platforms/android/
vimdiff AndroidManifest.xml ../../../android/AndroidManifest.xml
현재 동작오류로 유보하였음.
WatchKit App을 선택할 경우 정상적으로 실행되지 않습니다(시뮬레이터는 실행됩니다.). 아래의 에러코드 발생
ld: framwork not found AVFoundation
clang: error: linker command failed with exit code 1 (use -v to see invocation)
applewatch 폴더 하위의 watch app과 extension 폴더를 platforms/ios에 복사
$ cd platforms/ios/
$ cp -rf ../../../applewatch/TodayWeather\ WatchKit\ 1\ App ./
$ cp -rf ../../../applewatch/TodayWeather\ WatchKit\ 1\ Extension ./
patch
ionic deploy
$ ionic upload
android
$ ionic build --release android
$ cp platforms/android/build/outputs/apk/android-armv7-release-unsigned.apk ./
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-armv7-release-unsigned.apk alias_name
$ ~/Library/Android/sdk/build-tools/VERSION/zipalign android-armv7-release-unsigned.apk TodayWeather_V0.00.00.apk
ios
chrome extension
$ cd ../../chromeExtension
$ gulp sass;gulp manifest;gulp www;gulp uglify
$ zip -r TodayWeather_chromeExtension.zip chrome
publish on https://chrome.google.com/webstore/developer/dashboard