![]() gradle ( task : "bundle", flavor : "Staging", build_type : "Release" ) Since we are planning to submit to the store, it makes sense to create a Release. The flavor for our example will be, and the build type will be Debug or Release. We are going to choose the bundle option. Gradle requires, which can bundle or assemble. Inside this staging, add the ‘ gradle ’ instructions to create the build. desc "Submit a new Staging Build to Google Play Internal Track" lane : staging do end It is always best practice to provide a description before the lane definition. Staging Laneįirst, we’re going to create a lane called ‘Staging’. Now, let’s create some lanes! All of them should be created within platform :android do and the end statement. Go to your Fastfile (fastlane/Fastfile) and remove all the content inside platform :android do, the remaining file should look like this: default_platform ( : android ) platform : android do The process is largely the same for each lane. Feel free to add as many lanes as desired for your deployment. A lane is a group of instructions to be executed in a particular order, similar to a function in JavaScript. ![]() Next, we are going to set up two lanes for automated deployment, one for staging, and another for production. gitignore file, as we don’t want to have this in our repo.Īndroid/fastlane/play-store-credentials.json Lane Setup Once finished, add your ` play-store-credentials.json ` to the Fastlane folder that was just created. We will not cover that topic in this post, but if downloading the metadata, be sure to remember to add it to the. When asked to ‘ Download existing metadata and setup metadata management? ’, type ‘ N ’, unless you want to download the metadata. For the step asking the ‘ Path to the JSON secret file’, paste the following. We’ll cover how to submit multiple flavors later in this article.Ģ. Note: If you are using a different applicationId, depending on the flavor of Android being built, you can just set the default one at this point. The package-name can be found in the android/app/adle file as applicationId : ![]() In your android folder, use bash to initiate Fastlane with the following line of code. Getting started with Fastlane is pretty simple.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |