1. works with Android app
In order to build your app for Android, you will need to have a file called
In order to build your app for Android, you will need to have a file called
mobile-config.js
in the root directory of your app, with at least the following contents:App.info({
name: 'MyApp',
description: 'An Android app built with Meteor',
version: '0.0.1'
});
App.icons({
'android_ldpi': 'resources/icons/icon-ldpi.png',
'android_mdpi': 'resources/icons/icon-mdpi.png',
'android_hdpi': 'resources/icons/icon-hdpi.png',
'android_xhdpi': 'resources/icons/icon-xhdpi.png'
});
Your app also needs to be deployed to a public server such as meteor.com, and built by invoking
meteor build
with the --server
option pointing to that server:meteor deploy your-desired-app-hostname.meteor.com
meteor build ~/build-output-directory \
--server=your-desired-app-hostname.meteor.com
To sign your app for production, you'll need a private key. This key lets you publish and update your app. If you haven't made a key for this app, run:
keytool -genkey -alias your-app-name -keyalg RSA \
-keysize 2048 -validity 10000
Note: Ensure that you have secure backups of your keystore (~/.keystore). If you publish an app to Google Play and then lose the key with which you signed your app, you will not be able to publish any updates to your app, since you must always sign all versions of your app with the same key.
Now, you can sign your app:
cd ~/build-output-directory/android/
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 unaligned.apk your-app-name
~/.meteor/android_bundle/android-sdk/build-tools/20.0.0/zipalign 4 \
unaligned.apk production.apk
From this point on, the process for submitting the app to the Play Store is the same as it would be for any other Android app.
2. works with IOS app
~/build-output-directory/android/production.apk
is the APK to upload to production.2. works with IOS app
meteor install-sdk iOS
meteor add-platform iOS
meteor run iOS
0 comments:
Post a Comment