Skip to Content
그레이들 레시피: 안드로이드 빌드 시스템 Gradle 실무 안내서
book

그레이들 레시피: 안드로이드 빌드 시스템 Gradle 실무 안내서

by 유동환, 켄 커즌
December 2016
Beginner to intermediate
173 pages
3h 43m
Korean
Hanbit Media, Inc.
Content preview from 그레이들 레시피: 안드로이드 빌드 시스템 Gradle 실무 안내서
76
그레이들 레시피
에서 다룹니다. 제품 특성은 레시피
3
.
2
에서 다룹니다. 제품 특성과 빌드 타입을 합하여 ‘빌드
변형
Build
Variant
’이라고 하는데, 각 변형은 리소스와
manifest
속성, 소스 코드 위치를 별도로 지
정할 수 있습니다. 자세한 내용은 레시피
3
.
3
레시피
3
.
5
에서 알려줍니다.
3.2
제품 특성과 빌드 변형
문제
본질적으로 같은 애플리케이션이지만, 상황에 맞게 리소스나 소스 코드를 다르게 하고 싶다.
해결
제품 특성을 이용하여 같은 애플리케이션을 상황에 맞는 다른 버전으로 생성한다.
논의
빌드 타입은 개발 프로세스의 일부이며 개발 단계부터 배포 단계로 진행됩니다. 기본값은 디버
그와 릴리스가 있습니다. 제품 특성은 동일한 애플리케이션의 다양한 버전을 의미합니다. 고객
에 따라 룩앤필
Look
and
Feel
을 다르게 하고 싶거나 무료 버전과 유료 버전을 구분할 때 해당합니다.
제품 특성을 선언하려면 모듈
build
.
gradle
파일에서
android
하위의
productFlavors
블록
을 지정하면 됩니다. 예를 들어, ‘
Hello
World
’ 안드로이드 애플리케이션을 만들어봅시다. 이
앱은
EditText
에서 이름을 받아서 사용자에게 인사합니다. [예제
3
-
4
]와 같이 조금은 재미있
게 ‘친절한
friendly
’ 버전과 ‘오만한 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

웹 애플리케이션 보안: 정찰, 공격, 방어 세 단계로 배우는 웹 애플리케이션 보안의 모든 것

웹 애플리케이션 보안: 정찰, 공격, 방어 세 단계로 배우는 웹 애플리케이션 보안의 모든 것

최용, 앤드루 호프먼

Publisher Resources

ISBN: 9788968487095