Hi Alex here from rebeloper.com and in this video we are going to finish up our
setup of our Anti Candy Crunch source code we are going to upload our build to
iTunes Connect and that is because we are going to setup our localization and
we are going to create some mini setups that are left behind so without further
ado let's get started.
Okay we have left off by setting up our in-app purchases
and now we are going to create our localization, okay. Let me go through how
you can set up a localization so go ahead and go to Anti Candy Crunch select
your target and let's just scroll down here or bother yet at your project and
under localization hit the plus button and let's say you want to create a
French localization. Make sure that you select localizable.strings and your
info.plist dot string and select finish and now as you can see a new
localizable string has been attached to your localizable.strings and your
info.plist string so let's take a look at it and as you can see they have the
default so the base localization files in it so then you have the title app the
tutorial and so on you need to edit each and every one for the localization of
your choice. Now there we have our image file names now because we are using
images localized images and that is quite idea to wrap your head around well
it's pretty simple under your English localization you have the name of your
title app and under the other one the Hungarian
you have title app_HU and you will need to create let's say for the
French_FR or something like that so make sure you localize your
title and then your text and it is self-explanatory
make sure you localize it correctly. Now let us just localize our well I will
just remove all of the localization and because I just really wanted to be in
English so to do that let us just select our French first let's remove that and
and delete localized resources, let's remove it and let's remove the Hungarian too, okay. Delete localizable resources and now you
know how you can't delete the localization of course you can at any
time add the localization. Now if you remember in the Assets.catalog we had
a title app_HU now we don't need it but if we had entered the
localization then we would need to add the title apps localized
image inside here so we will just leave it as is
okay one thing I have noticed is that our version number is two
well the updated version will be two I will take care of that later on and I
will show you only the last part where I just update the current code but you now
are creating a brand new project so version number should be one as and the
display name well let's change this to Anti Candy, Anti Candy is just fine okay
and now remember the localizable.strings will not apply you have only the display
name and the default where the base localization.
Okay let's go through it once more one last time and I believe we are already
set up but we still need some changes in the setup.swift file and that is well
let me just go through each and every one of them well the default font
name is great, we have our music set up, sound file names are also set up, levels
count per map well 36 if you want to add more than you could but I highly advise
not to 36 is the way to go because you need to make some more changes in code
but if you wish you could go and hire us let me go and take a look rebeloper.com/hire-us
and here if you just tap on it you just need to enter fill out the form and
there you go you can ask us anything for custom work now let's go back here focus
focus No here we have our layered background
color well in the app there are alerts of course and there are customers so you
can set and colors of the individual pieces of the alert here. Points per good
chain cookie now this is a trick one because you want to add points to the
user well yeah points to the user when good
change cookie is made now good chain cookie is 20 points points per bad
chain cookie is -5 so for example if your chain is free that is a bad chain
then you are subtracted 15 points if your chain is good and that is 4
cookies or more then it is a 100 points or 120 or 140 depends on the
length of the chain. Now pop-up title color another color here where we have
our pop-up well you can let me just show you in code
because it's kind of hard to show we have these pop-ups basic pop-ups and the
title colors, so let it just go here the tutorial the color of the that text
okay let's stop this animated score sprite there are 6 cookie types in the help
and now you can add the cookie types colors so the animation score
matches the cookies well the basic color of the cookie.
Shuffle candies cost well you can shuffle the candies and this is how much stars it
will cost, okay. Chartboost app ID, Chartboost signature we already set that up
show interstitial ad on a level button tab. Now this is for the Chartboost ad and
this is randomization and as you can read must be between 1 very unlucky
and 10 very likely so this is a random number setting up a random way of
showing ad when a user taps a new level and that is where an interstitial will
be shown the Chartboost interstitial so you could set this to 10 if you want.
Every time the user taps on a level then we will show an
interstitial. Leaderboard ID well we need to change that animated matched
cookies with circles I have already talked about that and app ID, okay. Let's start
with our app ID because that is the easiest to change and we will finish
with leaderboard ID, okay. App ID let's go back to iTunes Connect and under
App Store you will just find your Apple ID and you just simply copy and paste it inside
the code and that's it. Now we need to create our leaderboard ID and the
leaderboard ID is under features and game center, okay. Let's create a new leaderboard
by tapping on the plus button there
and let's wait for it and choose our leaderboard it will be a single
leaderboard of course and leaderboard reference name is score and the leaderboard ID
now is the same as with the in-app purchase ID it goes under the
same logic so bundle ID and a plus and a dot and score I believe let me just
double check if that is correct let's go back to our setup scores okay scores and
I'll just copy this out and paste it right inside our code so I just don't
forget and we don't get any typos, okay. Format should be integer high to
low go ahead and take a look at the question marks for more explanations
there let's add a leaderboard localization, it will be English the name
will be scores, choose a formater and this will be point and points, okay and
let's save and save again or the final and last time, okay. Here we have our
leaderboard ID and I believe we are ready to archive our
build and upload it to the App Store let me just close this, okay.Here we have our
Anti Candy Crunch project because everything is set up for uploading to
the App Store that is what we are going to do now so go ahead a select generic
iOS device and under products let us just clean first and then let us
just archive and this will take maybe a few minutes so I will just fast forward this.
Okay here we have our archive and let me just remind you that signing should
be automatically managed and you should select your own team but I'm sure you
have already done that when you have added your bundle identified this is
just a heads up so you get the archive correct. Now let us just upload to the
App Store where there are two ways to upload through Xcode and if we are lucky
then we will leave it as is but you can also use Xcode developer tool the
application loader we will use upload to App Store for now if it doesn't really
work it really depends it sometimes does the work sometimes doesn't well then we
will go back to the application loader so click on next automatically manage
signing okay let's wait for processing
okay and here it is you can simply upload. Click on upload and it will well
this may take a little longer than you might expect it all depends on iTunes
Connect servers availability and your internet connection and of course the
power of your Mac but this might take a little longer than expected so please be
patient and wait for it to upload to the App Store so I will just
stop our recording now and come back when it is ready and uploaded well maybe
maybe I just don't need to wait, let us just fast forward these.
Great and now with the power of video editing this has been done in a few
seconds how amazing is that so upload successful click on done and
now if you go back to your iTunes Connect and select activity you will
find that your version is actually there but it is still processing well it
usually takes about 15 minutes to process and after that you will see your
icon here and the processing label will be gone and you will be able to grab
your build inside the version setup. Well we will do that in the next video so if
you like this one go ahead and give it a thumbs up and subscribe to our Channel
if you are watching this from our YouTube channel if you are not go ahead
and take a look at our channel just awesome tutorials and as always I will
see you in the next one