An Ionic project for fetching excellent technical blogs.
node@4.6.2
or lower version is required, node@7.x
is not suggested.
global packages:
npm install -g ionic@1.7.16
npm install -g cordova@6.2.0
local packages:
cd <path/to>RSSHelper/src/RSSHelper
npm install
And then start ionic server:
cd <path/to>RSSHelper/src/RSSHelper
ionic serve
JAVA:
Attention: JDK1.7 or older will cause a cordova error and fail to build.
Android:
- Android SDK@23
Env variables(Windows):
Path D:\jdk\bin;D:\Android\sdk\tools;D:\Android\sdk\platform-tools
JAVA_HOME D:\jdk
cd <path/to>RSSHelper/src/RSSHelper/platforms/android
keytool -genkey -v -keystore RSSHelper.keystore -alias RSSHelper -keyalg RSA -keysize 2048 -validity 10000
cd <path/to>RSSHelper/src/RSSHelper/platforms/android
vi release-signing.properties
# content like this:
storeFile=./RSSHelper.keystore
keyAlias=RSSHelper
cd <path/to>RSSHelper/src/RSSHelper
ionic browser add crosswalk
Crosswalk is really necessary, there will be no splash and no list in the tab when build without it.
cd <path/to>RSSHelper/src/RSSHelper
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
Due to some quirks, install this plugin separately.
ionic platform add android
cd <path/to>RSSHelper/src/RSSHelper
ionic build --release android
Then an apk file will be generated:
<path/to>RSSHelper/src/RSSHelper/platforms/android/build/outputs/apk/android-release.apk
support building ios10.x, lower version for building ios9.x
support building ios10.x
Xcode 7.x ONLY supports building ios9.x and lower
Attention: Xcode upgrading depends on the OSX upgrading, and can not install/update the Xcode form the appstore on OSX 10.9.
npm install -g ios-sim
cd <path/to>RSSHelper/src/RSSHelper
ionic platform add ios
the same as Build android step4.
cd <path/to>RSSHelper/src/RSSHelper
ionic build ios
cd <path/to>RSSHelper/src/RSSHelper
ionic emulate ios
An iOS simulator will start up and then open the app, and everything is fine.
cd <path/to>RSSHelper/src/RSSHelper/platforms/ios
# Open RSSHelper.xcodeproj with Xcode
# USB connect the device
# Click Product>Destination>device name
# Click the triangle button(Build and run the current scheme)
- error occurred when build with crosswalk
- inappbrowser doesn't work
http://stackoverflow.com/questions/17849338/phonegap-android-inappbrowser-not-working