Skip to content

Commit

Permalink
Renamed package from schibstedspain to adevinta (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranpons authored Oct 22, 2021
1 parent 3638a48 commit 0a9c552
Show file tree
Hide file tree
Showing 43 changed files with 79 additions and 151 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Builds the release artifacts of the library
- name: Release build
run: ./gradlew assembleRelease -x :sample:assembleRelease
run: ./gradlew assembleRelease -x :app:assembleRelease

# Generates other artifacts (javadocJar is optional)
- name: Source jar
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.schibsted.mappicker"
package="com.adevinta.mappicker"
>

<uses-permission android:name="android.permission.INTERNET"/>
Expand Down Expand Up @@ -53,7 +53,7 @@
</activity>

<activity
android:name="com.schibstedspain.leku.LocationPickerActivity"
android:name="com.adevinta.leku.LocationPickerActivity"
android:label="@string/leku_title_activity_location_picker"
android:windowSoftInputMode="adjustPan"
android:theme="@style/AppTheme.Map"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibsted.mappicker
package com.adevinta.mappicker

import android.app.Activity
import android.content.Context
Expand All @@ -11,20 +11,20 @@ import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.schibstedspain.leku.ADDRESS
import com.schibstedspain.leku.LATITUDE
import com.schibstedspain.leku.LEKU_POI
import com.schibstedspain.leku.LOCATION_ADDRESS
import com.schibstedspain.leku.LONGITUDE
import com.schibstedspain.leku.LekuPoi
import com.schibstedspain.leku.LocationPicker
import com.schibstedspain.leku.LocationPickerActivity
import com.schibstedspain.leku.TIME_ZONE_DISPLAY_NAME
import com.schibstedspain.leku.TIME_ZONE_ID
import com.schibstedspain.leku.TRANSITION_BUNDLE
import com.schibstedspain.leku.ZIPCODE
import com.schibstedspain.leku.tracker.LocationPickerTracker
import com.schibstedspain.leku.tracker.TrackEvents
import com.adevinta.leku.ADDRESS
import com.adevinta.leku.LATITUDE
import com.adevinta.leku.LEKU_POI
import com.adevinta.leku.LOCATION_ADDRESS
import com.adevinta.leku.LONGITUDE
import com.adevinta.leku.LekuPoi
import com.adevinta.leku.LocationPicker
import com.adevinta.leku.LocationPickerActivity
import com.adevinta.leku.TIME_ZONE_DISPLAY_NAME
import com.adevinta.leku.TIME_ZONE_ID
import com.adevinta.leku.TRANSITION_BUNDLE
import com.adevinta.leku.ZIPCODE
import com.adevinta.leku.tracker.LocationPickerTracker
import com.adevinta.leku.tracker.TrackEvents
import java.util.UUID
import kotlin.collections.ArrayList
import kotlin.collections.List
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibsted.mappicker
package com.adevinta.mappicker

import androidx.multidex.MultiDexApplication

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 8.0.0</string>
<string name="leku_lib_version" translatable="false">version 9.0.0</string>
</resources>
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ org.gradle.jvmargs=-Xmx2048m
org.gradle.configureondemand=false
android.useAndroidX=true
libGroup=com.adevinta.android
libVersion=8.1.0
libVersion=9.0.0
4 changes: 2 additions & 2 deletions leku/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.schibsted.leku"
package="com.adevinta.leku"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

Expand All @@ -16,7 +16,7 @@
/>

<activity
android:name="com.schibstedspain.leku.LocationPickerActivity"
android:name="com.adevinta.leku.LocationPickerActivity"
android:label="@string/leku_title_activity_location_picker"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibsted.leku
package com.adevinta.leku

import android.Manifest
import android.content.Intent
Expand All @@ -23,12 +23,6 @@ import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.filters.FlakyTest
import androidx.test.rule.ActivityTestRule
import androidx.test.rule.GrantPermissionRule
import com.schibstedspain.leku.LATITUDE
import com.schibstedspain.leku.LAYOUTS_TO_HIDE
import com.schibstedspain.leku.LONGITUDE
import com.schibstedspain.leku.LocationPickerActivity
import com.schibstedspain.leku.R
import com.schibstedspain.leku.SEARCH_ZONE
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.schibsted.leku.geocoder.api
package com.adevinta.leku.geocoder.api

import com.schibstedspain.leku.geocoder.api.AddressBuilder
import junit.framework.Assert.assertEquals
import junit.framework.Assert.assertTrue
import org.json.JSONException
Expand Down
2 changes: 1 addition & 1 deletion leku/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.schibstedspain.leku"
package="com.adevinta.leku"
>

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku
package com.adevinta.leku

import android.location.Location
import android.os.Parcel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.schibstedspain.leku
package com.adevinta.leku

import com.schibstedspain.leku.tracker.LocationPickerTracker
import com.schibstedspain.leku.tracker.TrackEvents
import com.adevinta.leku.tracker.LocationPickerTracker
import com.adevinta.leku.tracker.TrackEvents

object LocationPicker {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku
package com.adevinta.leku

import android.annotation.SuppressLint
import android.app.Activity
Expand Down Expand Up @@ -59,20 +59,20 @@ import com.google.android.libraries.places.api.Places
import com.google.android.material.appbar.MaterialToolbar
import com.google.android.material.floatingactionbutton.FloatingActionButton
import com.google.maps.GeoApiContext
import com.schibstedspain.leku.geocoder.AndroidGeocoderDataSource
import com.schibstedspain.leku.geocoder.GeocoderPresenter
import com.schibstedspain.leku.geocoder.GeocoderRepository
import com.schibstedspain.leku.geocoder.GeocoderViewInterface
import com.schibstedspain.leku.geocoder.GoogleGeocoderDataSource
import com.schibstedspain.leku.geocoder.api.AddressBuilder
import com.schibstedspain.leku.geocoder.api.NetworkClient
import com.schibstedspain.leku.geocoder.places.GooglePlacesDataSource
import com.schibstedspain.leku.geocoder.timezone.GoogleTimeZoneDataSource
import com.schibstedspain.leku.locale.DefaultCountryLocaleRect
import com.schibstedspain.leku.locale.SearchZoneRect
import com.schibstedspain.leku.permissions.PermissionUtils
import com.schibstedspain.leku.tracker.TrackEvents
import com.schibstedspain.leku.utils.ReactiveLocationProvider
import com.adevinta.leku.geocoder.AndroidGeocoderDataSource
import com.adevinta.leku.geocoder.GeocoderPresenter
import com.adevinta.leku.geocoder.GeocoderRepository
import com.adevinta.leku.geocoder.GeocoderViewInterface
import com.adevinta.leku.geocoder.GoogleGeocoderDataSource
import com.adevinta.leku.geocoder.api.AddressBuilder
import com.adevinta.leku.geocoder.api.NetworkClient
import com.adevinta.leku.geocoder.places.GooglePlacesDataSource
import com.adevinta.leku.geocoder.timezone.GoogleTimeZoneDataSource
import com.adevinta.leku.locale.DefaultCountryLocaleRect
import com.adevinta.leku.locale.SearchZoneRect
import com.adevinta.leku.permissions.PermissionUtils
import com.adevinta.leku.tracker.TrackEvents
import com.adevinta.leku.utils.ReactiveLocationProvider
import java.util.Locale
import java.util.TimeZone
import kotlin.collections.set
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku
package com.adevinta.leku

import android.view.LayoutInflater
import android.view.View
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.geocoder
package com.adevinta.leku.geocoder

import android.location.Address
import android.location.Geocoder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.geocoder
package com.adevinta.leku.geocoder

import android.location.Address
import com.google.android.gms.maps.model.LatLng
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.schibstedspain.leku.geocoder
package com.adevinta.leku.geocoder

import android.annotation.SuppressLint
import android.location.Address
import com.google.android.gms.maps.model.LatLng
import com.google.android.gms.maps.model.LatLngBounds
import com.schibstedspain.leku.geocoder.places.GooglePlacesDataSource
import com.schibstedspain.leku.geocoder.timezone.GoogleTimeZoneDataSource
import com.schibstedspain.leku.utils.ReactiveLocationProvider
import com.adevinta.leku.geocoder.places.GooglePlacesDataSource
import com.adevinta.leku.geocoder.timezone.GoogleTimeZoneDataSource
import com.adevinta.leku.utils.ReactiveLocationProvider
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
import io.reactivex.rxjava3.core.Observable
import io.reactivex.rxjava3.core.ObservableSource
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.geocoder
package com.adevinta.leku.geocoder

import android.location.Address
import com.google.android.gms.maps.model.LatLng
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.geocoder
package com.adevinta.leku.geocoder

import android.location.Address
import android.location.Location
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.schibstedspain.leku.geocoder
package com.adevinta.leku.geocoder

import android.location.Address
import com.google.android.gms.maps.model.LatLng
import com.schibstedspain.leku.geocoder.api.AddressBuilder
import com.schibstedspain.leku.geocoder.api.NetworkClient
import com.schibstedspain.leku.geocoder.api.NetworkException
import com.adevinta.leku.geocoder.api.AddressBuilder
import com.adevinta.leku.geocoder.api.NetworkClient
import com.adevinta.leku.geocoder.api.NetworkException
import io.reactivex.rxjava3.core.Observable
import java.util.Locale
import org.json.JSONException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.geocoder.api
package com.adevinta.leku.geocoder.api

import android.location.Address
import org.json.JSONArray
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.geocoder.api
package com.adevinta.leku.geocoder.api

import java.io.ByteArrayOutputStream
import java.io.IOException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.geocoder.api
package com.adevinta.leku.geocoder.api

class NetworkException : RuntimeException {
constructor()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.geocoder.places
package com.adevinta.leku.geocoder.places

import android.location.Address
import com.google.android.gms.maps.model.LatLngBounds
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.geocoder.timezone
package com.adevinta.leku.geocoder.timezone

import android.content.Context
import android.content.pm.PackageManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.locale
package com.adevinta.leku.locale

import com.google.android.gms.maps.model.LatLng
import java.util.Locale
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.locale
package com.adevinta.leku.locale

import android.os.Parcel
import android.os.Parcelable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.permissions
package com.adevinta.leku.permissions

import android.Manifest
import android.app.Activity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.tracker
package com.adevinta.leku.tracker

interface LocationPickerTracker {
fun onEventTracked(event: TrackEvents)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.tracker
package com.adevinta.leku.tracker

enum class TrackEvents(val eventName: String) {
GOOGLE_API_CONNECTION_FAILED("Connection Failed"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.utils;
package com.adevinta.leku.utils;

import android.content.Context;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.utils;
package com.adevinta.leku.utils;

import android.content.Context;
import android.os.Bundle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.utils;
package com.adevinta.leku.utils;

import android.annotation.SuppressLint;
import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.schibstedspain.leku.utils
package com.adevinta.leku.utils

import android.content.Context
import android.location.Location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<fragment android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/map"
tools:context="com.schibstedspain.leku.LocationPickerActivity"
tools:context="com.adevinta.leku.LocationPickerActivity"
android:name="com.google.android.gms.maps.SupportMapFragment"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<fragment android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/map"
tools:context="com.schibstedspain.leku.LocationPickerActivity"
tools:context="com.adevinta.leku.LocationPickerActivity"
android:name="com.google.android.gms.maps.SupportMapFragment"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<fragment android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/map"
tools:context="com.schibstedspain.leku.LocationPickerActivity"
tools:context="com.adevinta.leku.LocationPickerActivity"
android:name="com.google.android.gms.maps.SupportMapFragment"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<fragment android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/map"
tools:context="com.schibstedspain.leku.LocationPickerActivity"
tools:context="com.adevinta.leku.LocationPickerActivity"
android:name="com.google.android.gms.maps.SupportMapFragment"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<fragment android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/map"
tools:context="com.schibstedspain.leku.LocationPickerActivity"
tools:context="com.adevinta.leku.LocationPickerActivity"
android:name="com.google.android.gms.maps.SupportMapFragment"
/>

Expand Down
2 changes: 1 addition & 1 deletion leku/src/main/res/layout/leku_activity_location_picker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<fragment android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/map"
tools:context="com.schibstedspain.leku.LocationPickerActivity"
tools:context="com.adevinta.leku.LocationPickerActivity"
android:name="com.google.android.gms.maps.SupportMapFragment"
/>

Expand Down
Loading

0 comments on commit 0a9c552

Please sign in to comment.