mulheres na tecnologia 2015
TRANSCRIPT
![Page 1: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/1.jpg)
Bibliotecas Android e gerenciamento de dependências utilizando Gradle
Francielly Moraes
![Page 2: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/2.jpg)
Francielly de Moraes
![Page 3: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/3.jpg)
Roteiro
Introdução
Versões android Mercado
Bibliotecas androidPor que usarOnde encontrarExemplos
Gradle O que é?
Como usar
![Page 4: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/4.jpg)
Versões do android
![Page 5: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/5.jpg)
Vários sabores
![Page 6: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/6.jpg)
Distribuição no mercado mundial
![Page 7: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/7.jpg)
Mercado
![Page 8: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/8.jpg)
Mercado
1 milhão de apps50 bilhões de downloads
+1 bilhão de ativações
![Page 9: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/9.jpg)
Bibliotecas
![Page 10: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/10.jpg)
“É um conjunto de funções pré-escritas, que formam uma solução para um determinando problema.”
Biblioteca
Resolvem um problema para você!
![Page 11: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/11.jpg)
● Provável economia de tempo● Menos código● Mais abstração
Por que usar
Produtividade
![Page 12: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/12.jpg)
● GitHub● https://android-arsenal.com● https://android-libs.com/
Onde encontrar
![Page 13: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/13.jpg)
- Anotações
@InjectView(R.id.button1)
Button button1;
https://github.com/JakeWharton/butterknife
Exemplos - ButterKnife
![Page 14: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/14.jpg)
● Simplifica a converção de objetos Java para JSON e vice-versa
Gson gson = new Gson();gson.fromJson(json.toString(), classe);
https://github.com/google/gson
Exemplos - Gson
![Page 15: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/15.jpg)
- Requisições ao servidor
HttpRequest.get("http://google.com").code();
https://github.com/kevinsawicki/http-request
Exemplos - HttpRequest
![Page 16: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/16.jpg)
● Download de imagens
Picasso.with(context).
load("http://i.imgur.com/DvpvklR.png")
.into(imageView);
http://square.github.io/picasso/
Exemplos - Picasso
![Page 17: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/17.jpg)
● .jar
Realm realm = Realm.getInstance(this);
realm.beginTransaction();
Person person = realm.createObject(Person.class);
person.setName("Young Person");
person.setAge(14);
realm.commitTransaction();
RealmResults<User> result = realm.where(User.class).greaterThan("age", 10).beginGroup().equalTo("name", "Peter")
.or().contains("name", "Jo").endGroup().findAll();
https://realm.io/news/realm-for-android/
Exemplos - Realm
![Page 18: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/18.jpg)
● Versão atual 23.0.1
http://android-developers.blogspot.com.br/2015/04/android-support-library-221.html
Exemplos - Android Support Library
![Page 19: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/19.jpg)
● Versão atual 23.0.1
http://android-developers.blogspot.com.br/2015/04/android-support-library-221.html
Exemplos - Android Support Library
![Page 20: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/20.jpg)
● Versão atual 23.0.1
http://android-developers.blogspot.com.br/2015/04/android-support-library-221.html
Exemplos - Android Support Library
![Page 21: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/21.jpg)
● Versão atual 22.2.0
http://android-developers.blogspot.com.br/2015/05/android-design-support-library.html
Exemplos - Android Support Design<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true">
<!-- your content layout -->
<android.support.design.widget.NavigationView android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" app:headerLayout="@layout/drawer_header" app:menu="@menu/drawer"/></android.support.v4.widget.DrawerLayout>
![Page 22: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/22.jpg)
● Versão atual 22.2.0
http://android-developers.blogspot.com.br/2015/05/android-design-support-library.html
Exemplos - Android Support Design
![Page 23: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/23.jpg)
Gradle
![Page 24: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/24.jpg)
Gradle? É de comer ou passar no cabelo?
Gradle é uma ferramenta de automatização de build de sua aplicação.
![Page 25: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/25.jpg)
Gradle? É de comer ou passar no cabelo?
![Page 26: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/26.jpg)
Gradle? É de comer ou passar no cabelo?
![Page 27: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/27.jpg)
Gradle é para automatizar builds!
● Monta builds nas linguagens Java, Groovy e Scala
● Sua sintaxe é uma DSL baseada em Groovy○ Não precisa saber groovy○ Lembra JSON
● Directed acyclic graph○ A ordem das atividades de build depende do cenário○ Não tem ciclos (como o Maven) ou ordem específica
(como o Ant)
![Page 28: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/28.jpg)
Como usar?
![Page 29: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/29.jpg)
Gradle? É de comer ou passar no cabelo?
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.google.code.gson:gson:2.3.1' compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.jakewharton:butterknife:6.1.0' compile 'com.github.kevinsawicki:http-request:6.0' compile 'com.android.support:design:22.2.0'}
Para as bibliotecas citadas aqui:
![Page 30: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/30.jpg)
Gradle? É de comer ou passar no cabelo?
![Page 31: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/31.jpg)
Participe mais do GDG Goiânia
![Page 32: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/32.jpg)
Dúvidas....
![Page 33: Mulheres na tecnologia 2015](https://reader034.vdocuments.mx/reader034/viewer/2022051404/58718e671a28ab2c198b6ef5/html5/thumbnails/33.jpg)
Muito obrigado!
Contato
https://plus.google.com/+FranciellyMoraes3
https://br.linkedin.com/in/franms