publishing app to play store

9
Publishing App to Play store

Upload: shamsher-ahmed

Post on 12-Apr-2017

51 views

Category:

Mobile


0 download

TRANSCRIPT

Page 1: Publishing app to play store

Publishing App to Play store

Page 2: Publishing app to play store

PublishingPublishing an application to playstore requires four steps.

1.Generate your self signed certificate and signed your application with unique certificate.

2.Export your android application as apk.

3.Deploy application.

4.Use Play store to publish your application.

Page 3: Publishing app to play store

Generating a Self Signed Certificate (MAC VERSION)

1.Open Terminal

2.Copy paste the following line and replace the myappname.key.p12 and alias name with your information . keytool -genkey -v -keystore myappname.key.p12 -alias alias_name -keyalg RSA -keysize 2048 -storetype pkcs12 -validity 10000

3.Enter the password when you are asked and remember this password , this will come in handy when updating the application.

4.When you are asked to confirm your choice , press enter and use the same password.

5.You will get the self signed certificate.

Page 4: Publishing app to play store

Versioning your ApplicationPublishing requires to version our application so that each apk is uniquely identified.

In app.gradle ensure that versionCode and versionName is set.android {

defaultConfig {...

versionCode 1 versionName "1.0" } ...}versionCode is used by the market for upgradesversionName is used for user to determine actual version.

Page 5: Publishing app to play store

Selecting Target SDKPublishing your android application requires your supported sdk versions.

In app.gradle please ensure that following sdk versions are specified.android { ... defaultConfig { ... minSdkVersion 12 targetSdkVersion 24 } ...}minSdkVersion: the minimum API Level required for the application to runtargetSdkVersion : the API Level that the application targets

Page 6: Publishing app to play store

Disable All LogsDisable all log calls before generating the signed apk. This step is not mandatory but this step will increase performance and security of the application.If you want to avoid deleting all the logs manually you can use Proguard. First proguards need to enabled in module‘s build.gradle . Add these lines to build.gradle buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } }

Page 7: Publishing app to play store

Disable All Logs Continued..Next add these lines to proguard-rules.pro file.-assumenosideeffects class android.util.Log { public static boolean isLoggable(java.lang.String, int); public static int v(...); public static int i(...); public static int w(...); public static int d(...); public static int e(...);}

Page 8: Publishing app to play store

Generating the Signed Apk

1.Click Generate Signed Apk under build menu.

2.Select the keystore or create new one .(keystore key was already created in slide 3)

3.Enter the keystore password which you entered while generating self signed certificate.

4.Make sure build type is set to release.

5.Pick the folder in which you want to save the apk.

Page 9: Publishing app to play store

Deploying your Apk1.Create a google developer account on Google Play store .

2.After creating the account click on Publish an Android App.

3.Enter the App details

4.Enter the screenshots and app descriptions.

5.Select the apk and click on publish button.

Your application will be published after sometime.