1

So i'm about to publish my apps new version to android store, there was an old version of it in play store but i make a completely different project from it so i didn't use the folders which contains the project on itself.

Because of that my private key is not in my new version right now. When i looked the documentation of ionic it says that :

Now, we need to sign the unsigned APK and run an alignment utility on it to optimize it and prepare it for the app store. If you already have a signing key, skip these steps and use that one instead.

Actually "If you already have a signing key, skip these steps and use that one instead." part is not clear enough for me.

I have the .keystore file from old version but I'm little bit lost right now.

  1. What does this "skip those steps and use that one instead" means? What am I supposed to do right now?
  2. Where should I place that .keystore file?
  3. Am I done after placing the .keystore file or should I do something else?
  4. What is that code($ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name) for? Should I use it?
  5. What is that alias_name part?
  6. Should I do something else?

I would appreciate a help, I'm totally lost right now

Burak Güneli
  • 114
  • 1
  • 11

1 Answers1

2

The procedure is the same as when you first time published app (build the release app file - signing the APK file - optimize the APK). This time you do not have to create keystore file because you already have one. You'll reuse the same keystore for the entire life of the app, so you need to keep it for as long as you plan to support the app.

1.) If you already have keystore file you do not have to do new one.

2.) Put android-release-unsigned.apk and keystore in same folder. First rename android-release-unsigned.apk to example MyApp.apk

3.) You need to sign your app with that file.

4.) Yes, you should. In step 2 after you put MyApp.apk and MyApp.keystore in same folder.

$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore MyApp.keystore MyApp.apk MyApp

5.) This is the name of your application.

6.) And then just optimize the app. $ zipalign -v 4 MyApp.apk MyAppNew.apk

Tomislav Stankovic
  • 3,080
  • 17
  • 35
  • 42