How to release a Beagle's version local or remote

In this section, you will find how to release a version of Beagle locally or using a separate repository.

Follow the instructions according to the operational system you’re using:

Configuring Gradle

If you work on Android or Backend’s applications, you must configure the files that can be found on the root folder. This configuration works on remote and local versions.

As soon as you open the file, the first step is to change the version name that will be released. For that, you can change the VERSION_NAME variable value to the value you wish.

Besides, you have to add a variable called RELEASE_SIGNING_ENABLED and attribute it to the false value. That means you don’t need to sign a version, once that this configuration allows a Beagle’s version release in local way or to an own repository.

After you finish these configurations, you must have on your gradel the following variables according to the name you chose to your version (on this example, beagle-test is used): (root platform)


Publishing in a remote repository

At the end of the configuration, you have to configure a file that is on Beagle’s root folder, in this case, the maven-publish.gradle. On this file, add a target that will define:

  • In which repository the version will be released.
  • The necessary credentials to access this repository.
releaseRepositoryUrlRepository’s URL where the version will be released.
repositoryUsernameUser name.
repositoryPasswordPassword of the declared user name.

Check out below a publishing example:

maven-publish.gradle (root project)

apply plugin: "com.vanniktech.maven.publish"

def versionName = System.env.VERSION_DEPLOY != null ? System.env.VERSION_DEPLOY : VERSION_NAME ?: ""

version = versionName

mavenPublish {
nexus {
    		stagingProfile = ""
	targets {
    		uploadArchives {    
        	releaseRepositoryUrl = ""
        	repositoryUsername = "username"
        	repositoryPassword = "password"

Publishing in a local repository

At the end of the configuration, you must run some gradle’s commands.

To do so, go to the root folder on the platform you wish to release the version (Android or Backend) and, in the terminal of your preference, run the following command:

If you’re using a Windows terminal:

gradlew clean build publishToMavenLocal

In case you’re using another terminal:

./gradlew clean build publishToMavenLocal

After you run the command, the version will be automatically released.

Unlike the Android and Backend configuration, you don’t have to configure the file on iOS applications, just go straight to the configurations according to the version you want to generate.

In this case, just go straight to the configurations according to the version you want to generate.

Publishing in a remote repository

Using CocoaPods

On the podfile file, like any other dependency, put Beagle and add the address of your repository, see the example below:

pod 'Beagle', :git => ''

After you have configured the podfile, run the following command to download from your repository:

pod install

Using Carthage

On the Cartfilefile, add the repository of your Beagle’s version:

github “YourUser/YourRepository”

Publishing in a local repository

Using CocoaPods

Open the terminal and go to Beagle’s root folder and type the following command:

pod spec create MyBeagle

And MyBeagle.podspec will be created. Now open this file with a text editor and follow the example: do |spec| = "MyBeagle"
spec.version = "1.0.0"
spec.summary = "A short description"
spec.description = "Complete description"

spec.platform = :ios, "12.2"

spec.source = { :path => '.' }

Now, run the command below on your terminal with the root folder of your project:

pod install

Using Carthage

On the Cartfile, add the directory of your Beagle’s version like in the example below:

git "file:////Users/beagle" "master"

Last modified February 11, 2021: create content (#298) (43225e15)