본문 바로가기
[android] gradle build 성능 향상시키기 [android] gradle build 성능 향상시키기 https://android.jlelse.eu/android-build-speed-up-ver-english-c76890aa610 -Gradle 보다 성능이 좋은 Bazel, Buck, Pants 등의 다른 build tool 들이 있다.그러나 그들은 initialize 하기가 너무 어렵다. -Gradle 을 최신 버전으로 유지하자. -minSdk 를 build.gradle 에 명시하자. packaging process 는 두 단계를 거친다.하나는 class to dex 이고, 다른 하나는 dex merge 이다.API level 21 (LOS)부터는 ART 기반이기 때문에 dex merge 를 수행하지 않아도 된다.따라서 minSdk 를 명시해주.. 2019. 2. 3.
[android] Gradle Tutorial #2 Dependency, Android Libraries and Multi-project setup -external library jar 를 사용하려면 compile configuration 을 사용하면 된다. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) // api 와 implementation 으로 바뀌었다.} android { ...} -compile 은 main app 을 compile 한다.compile 되는 모든 것은 compile classpath 로 잡히고, final APK 에 포함이 된다. 다음과 같은 compile configuration 을 추가할 수 있고,buildType 을 추가하면 자동으로 compile 이 .. 2018. 10. 5.
[android] Gradle Tutorial #1 [android] Gradle Tutorial #1 http://tools.android.com/tech-docs/new-build-system/user-guide Build System 의 목적 code 와 resource 의 reuse 를 쉽게 한다. app 의 여러 variant 에 따라 multi-apk 를 생성하거나, 약간 다른 기능을 하는 app 을 쉽게 생성해낸다. build process 를 쉽게 설정하고, 확장하고, 개인화 할 수 있다. IDE 와 잘 연동된다. 왜 Gradle 인가? plugin 을 통해 custom build logic 을 만들어 낼 수 있는 진보된 빌드 시스템 혹은 툴킷이다. Groovy 기반 DSL ( Domain Specific Language) 을 빌드 로직을 .. 2018. 10. 4.
[android] Java8 을 사용해보자! [android] Java8 을 사용해보자! https://developer.android.com/studio/preview/features/java8-support.html Android 에서 Java8 사용하기 -Android Studio 2.4 Preview 4 이상부터 모든 Java7 과 Java8 언어 특성을 지원한다. -Java7 을 사용하더라도 JDK8 을 이용해서 컴파일하므로 JDK8 은 필요하다. -이전에는 Jack Compiler 를 사용해야 Java8 Compile 이 가능했는데,이제는 desugar 라는 bytecode transformation 만 있으면 된다.Jack 이 더 이상 필요하지 않다. Jack 을 사용하고 있었다면 build.gradle 에서 그 녀석부터 없애라! -J.. 2018. 10. 2.
[android] Google Sign In 준비하기 #1 [android] Google Sign In 준비하기 #1 https://developers.google.com/identity/sign-in/android/start-integrating -Google Sign-In 을 사용하기 위해서는 아래와 같은 조건이 필요하다. 단말 Android 2.3 이상 & Google Play Store 개발환경 최신버전의 Android SDK Android 2.3 이상 Google Play Services 설치 ( sdk manager 통해 ) -아래 명령을 통해 keystore 의 SHA1 추출keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore -https://de.. 2018. 2. 22.
[android] Material Support Library [android] Material Support Library http://code.hootsuite.com/tips-and-tricks-for-android-material-support-libraryhttps://android-developers.googleblog.com/2014/10/material-design-on-android-checklist.html -material support lib 을 사용하기 위해서는 build.gradle 에 dependency 를 추가해주어야 한다. dependencies { compile 'com.android.support:appcompat-v7:21.0.+'} -App theme 도 바꿔주자. -Activity 도 ActionBarActivity 를 상속받.. 2017. 7. 8.
Android Studio 로 이사하세요. Android Studio 로 이사하세요. 원문 : https://developer.android.com/sdk/installing/migrate.html 만약 당신이 이클립스를 IDE 로 쓰고 있다면 신속하게 Android Studio 로 이사하세요. 왜냐면 Eclipse 를 위한 ADT Plugin 은 이제 더 이상 활발하게 개발되지 않을 꺼니까요. 기존 Android Project 를 Android Studio 에서 사용하려면 다음의 스탭을 따라하세요. 1. Android Studio 에서 현재 열려있는 어떤 프로젝트든 닫아주세요. 그러면 "Welcome to Android Studio" 윈도우를 볼 수 있을 겁니다. 2. "Import Non-Android Studio Project" 를 clic.. 2014. 12. 10.
Eclipse 에서 Android Studio 로 넘어가기. Eclipse 에서 Android Studio 로 넘어가기. Work spaces 와 Sub-Projects 여 안녕~ Eclipse 에서는 Workspace 와 library projects 개념이 친숙했을 것이다.Android Studio 에서는 projects 들은 Modules, library project 들은 Library Modules 이라는 개념으로 통한다. Module 안뇽~ 반가워~ : ) Module 은 독립적으로 실행 가능하고, 테스트 되고, 디버그 되는 녀석을 이야기한다.각 모듈은 각각의 gradle build file이 필요하다.gradle build file 은 android version range, dependency, meta data 등을 포함한다. 개선된 Interfa.. 2014. 3. 27.
반응형