GithubHelp home page GithubHelp logo

android-synclanguage-testcode's Introduction

안드로이드 다국어리소스 자동화 및 테스트 코드작성

1. 구글 Drive, Sheet를 이용한 실시간 번역

사용툴

  • Google Sheet, Google AppScript - 번역 입력 및 트리거

    • 구글 Sheet에서 각 언어별 번역 본 및 언어에 대한 key값 입력
    • 구글 AppScript에 트리거를 걸어서 sheet가 변경될때마다 복사본 파일에 그대로 적용(복사본을 활용해서 리소스 동기화)
  • Python - Sheet 분석 및 데이터 가공(lib - gspread: 구글시트사용 라이브러리, oauth2client: google oauth 라이브러리)

    • Google API Console에서 Drive, Sheet API를 활성화 시키고 서비스계정 활성화 후 jsonkey파일 발급받아 oauth 인증때 사용
    • gspread 를 통해서 번역 데이터를 읽어 온다.
    • 안드로이드에서 사용하는 언어 리소스 XML 형태로 데이터를 가공해서 폴더 및 strings.xml 파일 생성
  • AndroidStudio - Gradle Task를 추가해서 빌드시 자동으로 리소스 파일 업데이트 진행

    • AndroidStudio에서 Python Community Edition Plugin을 받아서 설치해서 파이썬 사용할 준비를한다.
    • Gradle task를 추가시키고 commandLine을 통해서 파이썬 파일을 실행시키면 자동으로 리소스 폴더에 언어값이 추가된다.
  • 개발 지연되었던 부분

    • 그래들에서 기본적으로 파이썬 2.7로 적용되어서 라이브러리들이 안먹혀서 commandLine 명령에 'python' 대신 /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 경로로 전체 경로를 입력해서 해결

Android Test Support Library

jUnit Test

UI Test


참고사이트

android-synclanguage-testcode's People

Stargazers

Kwak Wonjo avatar

Watchers

James Cloos avatar YS(Albert.Lee) avatar

android-synclanguage-testcode's Issues

Mocking framework

Hi,

hope find you well with this cold call.

I am an author of mocking framework for Kotlin

I see you are using mockito-kotlin.

I just want you to be aware that there is solution that fully supports Kotlin and ask to try it in your new/current projects.

I can help you if you answer to this issue.

Thanks and please star it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.