Skip to content

Commit

Permalink
📝 update copyrights
Browse files Browse the repository at this point in the history
📝 update readme

Signed-off-by: birjuvachhani <[email protected]>
  • Loading branch information
BirjuVachhani committed Oct 4, 2020
1 parent ab4aade commit 4356b9f
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 29 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
[![language](https://img.shields.io/github/languages/top/BirjuVachhani/location-extension-android.svg?style=for-the-badge&colorB=f18e33)](https://kotlinlang.org/)
[![Platform](https://img.shields.io/badge/Platform-Android-green.svg?style=for-the-badge)](https://www.android.com/)
[![API](https://img.shields.io/badge/API-16%2B-F44336.svg?style=for-the-badge)](https://android-arsenal.com/api?level=16)
[![Release](https://jitpack.io/v/BirjuVachhani/locus-android.svg?style=flat-square)](https://jitpack.io/BirjuVachhani/locus-android)

Locus is a tiny kotlin library for android which makes it super very easy to retrieve location with just few lines of code. Everything including permission model and Location settings resolution is handled internally which removes a lot of boilerplate code any developer have to write every time.

See [Wiki](https://github.com/BirjuVachhani/locus-android/wiki) for more information and configuration!

## Features

* Android Q support
* Android R support (Report if any issue is found)
* Completely written in Kotlin
* Easy Initialization
* Handles Permission Model
Expand Down Expand Up @@ -45,7 +46,8 @@ allprojects {

```
dependencies {
implementation 'com.github.BirjuVachhani:locus-android:3.0.1'
implementation 'com.github.BirjuVachhani:locus-android:latest-version'
implementation 'com.google.android.gms:play-services-location:latest-version'
}
```

Expand All @@ -69,10 +71,12 @@ You are most welcome to contribute to this project!

Please have a look at [Contributing Guidelines](https://github.com/BirjuVachhani/locus-android/blob/master/CONTRIBUTING.md), before contributing and proposing a change.

<a href="https://www.buymeacoffee.com/birjuvachhani" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-blue.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>

# License

```
Copyright © 2019 BirjuVachhani
Copyright © 2020 BirjuVachhani
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down Expand Up @@ -33,7 +33,7 @@ import com.birjuvachhani.locus.LocusResult

/*
* Created by Birju Vachhani on 12 August 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

class LocationService : LifecycleService() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down Expand Up @@ -27,6 +27,11 @@ import com.google.android.gms.location.LocationRequest
import kotlinx.android.synthetic.main.activity_main.*
import java.util.*

/*
* Created by Birju Vachhani on 18 September 2019
* Copyright © 2020 locus-android. All rights reserved.
*/

class MainActivity : AppCompatActivity(), ActivityCompat.OnRequestPermissionsResultCallback {

private val TAG = this::class.java.simpleName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/*
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.birjuvachhani.locationextensionsample

import android.annotation.SuppressLint
Expand All @@ -9,7 +23,7 @@ import com.birjuvachhani.locus.Locus

/*
* Created by Birju Vachhani on 23 September 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

internal class ServiceStopBroadcastReceiver : BroadcastReceiver() {
Expand Down
4 changes: 2 additions & 2 deletions locus/src/main/java/com/birjuvachhani/locus/Configuration.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -21,7 +21,7 @@ import kotlinx.android.parcel.Parcelize

/*
* Created by Birju Vachhani on 07 February 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions locus/src/main/java/com/birjuvachhani/locus/Constants.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -17,7 +17,7 @@ package com.birjuvachhani.locus

/*
* Created by Birju Vachhani on 06 February 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions locus/src/main/java/com/birjuvachhani/locus/Extensions.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -21,7 +21,7 @@ import androidx.lifecycle.Observer

/*
* Created by Birju Vachhani on 06 February 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -23,7 +23,7 @@ import com.google.android.gms.location.LocationResult

/*
* Created by Birju Vachhani on 12 August 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -25,7 +25,7 @@ import java.util.concurrent.atomic.AtomicBoolean

/*
* Created by Birju Vachhani on 10 April 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions locus/src/main/java/com/birjuvachhani/locus/Locus.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down Expand Up @@ -37,7 +37,7 @@ import java.util.concurrent.atomic.AtomicBoolean

/*
* Created by Birju Vachhani on 09 November 2018
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

internal val isRequestingPermission = AtomicBoolean().apply {
Expand Down
8 changes: 6 additions & 2 deletions locus/src/main/java/com/birjuvachhani/locus/LocusActivity.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down Expand Up @@ -35,9 +35,13 @@ import com.google.android.gms.location.LocationSettingsRequest
import com.google.android.gms.location.LocationSettingsResponse
import com.google.android.gms.location.LocationSettingsStatusCodes

/*
* Created by Birju Vachhani on 17 July 2019
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
* Activity that handles permission model as well as location settings resolution process
* @property localBroadcastManager Used to send permission related broadcasts
* @property config Current configuration to be used for the library
* @property pref SharedPreferences instance to managed permission model
* @property permissions Permissions that needs to be requested based on the [config]
Expand Down
4 changes: 2 additions & 2 deletions locus/src/main/java/com/birjuvachhani/locus/LocusResult.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -19,7 +19,7 @@ import android.location.Location

/*
* Created by Birju Vachhani on 05 February 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions locus/src/main/java/com/birjuvachhani/locus/Logger.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -19,7 +19,7 @@ import android.util.Log

/*
* Created by Birju Vachhani on 19 July 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -19,7 +19,7 @@ import androidx.lifecycle.Observer

/*
* Created by Birju Vachhani on 16 September 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Birju Vachhani (https://github.com/BirjuVachhani)
* Copyright © 2020 Birju Vachhani (https://github.com/BirjuVachhani)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -24,7 +24,7 @@ import androidx.core.content.ContextCompat

/*
* Created by Birju Vachhani on 18 September 2019
* Copyright © 2019 locus-android. All rights reserved.
* Copyright © 2020 locus-android. All rights reserved.
*/

/**
Expand Down

0 comments on commit 4356b9f

Please sign in to comment.