Skip to content

Commit

Permalink
Release version 7.0.0 (#299)
Browse files Browse the repository at this point in the history
* Release version 7.0.0

* added Alex as reviewer

* updated screenshot
  • Loading branch information
ferranpons authored May 22, 2020
1 parent a80040a commit 2f91022
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ reviewers:
- gerardpedreny
- danieldisu
- jlquintana
- alxsimo

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
Expand Down
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Component library for Android that uses Google Maps and returns a latitude, long
### Features

<img align="right" width="0" height="368px" hspace="20"/>
<img src="docs/images/screenshot.gif" height="368px" align="right" />
<img src="docs/images/new_design_screenshot.png" height="368px" align="right" />

* Search by voice
* Search by text
Expand All @@ -66,7 +66,7 @@ Component library for Android that uses Google Maps and returns a latitude, long
### Prerequisites

minSdkVersion >= 15<br/>
Google Play Services = 16.0.0<br/>
Google Play Services = 17.0.0<br/>
AndroidX

### Download
Expand All @@ -83,14 +83,14 @@ Include the dependency in your app `build.gradle`:

```groovy
dependencies {
implementation 'com.schibstedspain.android:leku:6.4.0'
implementation 'com.schibstedspain.android:leku:7.0.0'
}
```

Alternatively, if you are using a different version of Google Play Services and AndroidX use this instead:

```groovy
implementation ('com.schibstedspain.android:leku:6.4.0') {
implementation ('com.schibstedspain.android:leku:7.0.0') {
exclude group: 'com.google.android.gms'
exclude group: 'androidx.appcompat'
}
Expand All @@ -102,7 +102,7 @@ Note that Places on Google Play services is deprecated and this library currentl
For the <b>legacy versions of Leku</b> that does not use AndroidX and want to use the latest Places SDK, you could use it in this way:

```groovy
implementation ("com.google.android.libraries.places:places-compat:1.0.0")
implementation ("com.google.android.libraries.places:places-compat:2.2.0")
implementation ("com.schibstedspain.android:leku:5.0.0") {
exclude group: 'com.google.android.gms'
exclude module: "play-services-places"
Expand Down Expand Up @@ -347,6 +347,17 @@ Using tha bundle parameter **LocationPickerActivity.LAYOUTS_TO_HIDE** you can ch
intent.putExtra(LocationPickerActivity.LAYOUTS_TO_HIDE, "street|city|zipcode")
```

##### Legacy Layout

<img src="docs/images/screenshot.gif" height="368px" align="right" />

If you want to use the old Leku layout design you need to add this line to the builder:

```kotlin
val locationPickerIntent = LocationPickerActivity.Builder()
.withLegacyLayout()
```

##### Search Zone

By default the search will be restricted to a zone determined by your default locale. If you want to force the search zone you can do it by adding this line with the locale preferred:
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<string name="launch_legacy_map_picker" translatable="false">LAUNCH LEGACY MAP LOCATION ACTIVITY</string>
<string name="launch_map_picker_with_pois" translatable="false">LAUNCH MAP WITH POIS</string>
<string name="launch_map_picker_with_style" translatable="false">LAUNCH MAP WITH STYLE</string>
<string name="leku_lib_version" translatable="false">version 6.4.0</string>
<string name="leku_lib_version" translatable="false">version 7.0.0</string>
</resources>
11 changes: 11 additions & 0 deletions docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ Using tha bundle parameter **LocationPickerActivity.LAYOUTS_TO_HIDE** you can ch
intent.putExtra(LocationPickerActivity.LAYOUTS_TO_HIDE, "street|city|zipcode")
```

##### Legacy Layout

<img src="docs/images/screenshot.gif" height="368px" align="right" />

If you want to use the old Leku layout design you need to add this line to the builder:

```kotlin
val locationPickerIntent = LocationPickerActivity.Builder()
.withLegacyLayout()
```

##### Search Zone

By default the search will be restricted to a zone determined by your default locale. If you want to force the search zone you can do it by adding this line with the locale preferred:
Expand Down
4 changes: 2 additions & 2 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ Include the dependency in your app `build.gradle`:

```groovy
dependencies {
implementation 'com.schibstedspain.android:leku:6.4.0'
implementation 'com.schibstedspain.android:leku:7.0.0'
}
```

Alternatively, if you are using a different version of Google Play Services and AndroidX use this instead:

```groovy
implementation ('com.schibstedspain.android:leku:6.4.0') {
implementation ('com.schibstedspain.android:leku:7.0.0') {
exclude group: 'com.google.android.gms'
exclude group: 'androidx.appcompat'
}
Expand Down
Binary file added docs/images/new_design_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Component library for Android that uses Google Maps and returns a latitude, long
### Features

<img align="right" width="0" height="368px" hspace="20"/>
<img src="images/screenshot.gif" height="368px" align="right" />
<img src="images/new_design_screenshot.png" height="368px" align="right" />

* Search by voice
* Search by text
Expand Down
4 changes: 2 additions & 2 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
MAJOR=6
MINOR=5
MAJOR=7
MINOR=0
PATCH=0

0 comments on commit 2f91022

Please sign in to comment.