Skip to content

A Gradle plugin that installs localize-with-spreadsheet module in Android project

Notifications You must be signed in to change notification settings

ebs-integrator/localize-with-spreadsheet-gradle

Repository files navigation

localizations-gradle-plugin

This is a Gradle project to install the localize-with-spreadsheet configurations in our projects and create a gradle task to update localizations from a Google spreadsheet.

Publishing the plugin

  1. Setup IntelliJ IDEA (https://www.jetbrains.com/idea/download/#section=mac).

  2. Download and open localizations-gradle-plugin project on IntelliJ IDEA.

  3. Once the project is build, go to View -> Tool Windows -> Gradle.

  4. Double click the following task: Tasks -> publishing -> publishToMavenLocal.

Applying the plugin

The below steps must be applied to the top-level build.gradle file.

Node.js must me installed to use this script

  1. Add local repository of Maven and plugin's dependency:
buildscript {
    ...
    repositories {
        ...
        mavenLocal()
    }
    dependencies {
        ...
        classpath 'com.ebs-integrator.plugins:localizations-kt:1.0.0'
    }
}
  1. Apply the plugin

apply plugin: 'com.ebs-integrator.plugins.localizations-kt'

  1. Create an update-localization.js file. Follow Step 1-4 instructions from: https://github.com/ebs-integrator/localize-with-spreadsheet

  2. Place this file into the root directory of your project

  3. Run localization task: Tasks -> ebs plugins -> updateLocalization

About

A Gradle plugin that installs localize-with-spreadsheet module in Android project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published