From 64c9f7fc6de25cb51b3b0c2a273223ccfdc18c9c Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:35:08 +0530 Subject: [PATCH 01/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e97535a..a0563ac 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Android library to get user's most previce live location and its updates via a c | | | | ------------- | ------------- | | ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s1.png "Logo") | ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s2.png "Logo") | -| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s3.png "Logo") | +| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s3.png "Logo") | ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s4.png "Logo") | # Setup From a1f981d119b0d4458c6b9fa76b90157433658e5b Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:36:19 +0530 Subject: [PATCH 02/14] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a0563ac..f974763 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Android library to get user's most previce live location and its updates via a c | | | | ------------- | ------------- | -| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s1.png "Logo") | ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s2.png "Logo") | -| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s3.png "Logo") | ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s4.png "Logo") | +| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s4.jpg "Logo") | ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s2.png "Logo") | +| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s3.png "Logo") | # Setup From a48a464845fe415d458e1cba4f1fcf5dfe09905f Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:38:19 +0530 Subject: [PATCH 03/14] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f974763..06a6c40 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Android library to get user's most previce live location and its updates via a c | | | | ------------- | ------------- | -| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s4.jpg "Logo") | ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s2.png "Logo") | -| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s3.png "Logo") | +| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s4.jpg?s=200 "Logo") | ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s2.png?s=200 "Logo") | +| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s3.png?s=200 "Logo") | # Setup From d80c3372c7baa04c214e182f4022f738d7d1deed Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:40:57 +0530 Subject: [PATCH 04/14] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06a6c40..74c59d0 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Android library to get user's most previce live location and its updates via a c | | | | ------------- | ------------- | -| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s4.jpg?s=200 "Logo") | ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s2.png?s=200 "Logo") | -| ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/s3.png?s=200 "Logo") | +| | | +| | # Setup From 70b38216c03a2307cb685040addbe299b33f0496 Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:41:44 +0530 Subject: [PATCH 05/14] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 74c59d0..2d6e3a9 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Android library to get user's most previce live location and its updates via a c | | | | ------------- | ------------- | -| | | -| | +| | | +| | # Setup From 95f33dd30f284576c36e623c2dac4cebc692ef87 Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:47:16 +0530 Subject: [PATCH 06/14] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2d6e3a9..c3fa815 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ + ![alt text](https://github.com/mumayank/AirLocation/blob/master/github_assets/image.png "Logo") # AirLocation @@ -8,14 +9,13 @@ Android library to get user's most previce live location and its updates via a callback! + Highest precision: The location is precise up to 7 decimal places + Either get user's location just one-time, or continue getting live udpates -+ Android 10+ compatible + No need to add any permissions in manifest manually + No need to add google play services location lib in gradle manually + Uses Google location services API internally - so you're in safe hands + Simple plug and play design + Extremely light weight library (~50KB + **Full Java support** - ++ Android 10+ compatible (gets user's location via foreground location access, i.e., an activity that belongs to your app must be visible to the user to continue receiving location updates) # Screenshots @@ -79,11 +79,11 @@ airLocation = AirLocation(activity, object: AirLocation.Callback { override fun aOnSuccess(locations: ArrayList) { // using the given locations array list, you can easily // trace the user path of the live location - } + } override fun bOnFailed(locationFailedEnum: AirLocation.LocationFailedEnum) { // couldn't fetch location due to reason available in locationFailedEnum - } + } }) ``` @@ -93,12 +93,12 @@ airLocation = AirLocation(activity, object: AirLocation.Callback { airLocation = AirLocation(activity, object: AirLocation.Callback { override fun aOnSuccess(locations: ArrayList) { - // todo - } + + } override fun bOnFailed(locationFailedEnum: AirLocation.LocationFailedEnum) { - // todo - } + + } }, true) // NOTE HERE: PASS TRUE TO JUST GET USER'S LIVE LOCATION ONCE ``` From a8e47e47ecd76765e8061cce185fbb28da5acf0a Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:50:54 +0530 Subject: [PATCH 07/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3fa815..9fef12b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![](https://jitpack.io/v/mumayank/AirLocation.svg)](https://jitpack.io/#mumayank/AirLocation) PayPal donate button -Android library to get user's most previce live location and its updates via a callback! +Android library to get user's most precise live location and its updates via a callback! + Highest precision: The location is precise up to 7 decimal places + Either get user's location just one-time, or continue getting live udpates + No need to add any permissions in manifest manually From 85b71582d2fe5ab3ff2ea5502e15d3e720396aa8 Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:53:19 +0530 Subject: [PATCH 08/14] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fef12b..5ce1189 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,11 @@ Android library to get user's most precise live location and its updates via a c + Either get user's location just one-time, or continue getting live udpates + No need to add any permissions in manifest manually + No need to add google play services location lib in gradle manually ++ No need to ask runtime permissions manually ++ No need to ask location settings optimization permissions manually + Uses Google location services API internally - so you're in safe hands + Simple plug and play design -+ Extremely light weight library (~50KB ++ Extremely light weight library (~50KB) + **Full Java support** + Android 10+ compatible (gets user's location via foreground location access, i.e., an activity that belongs to your app must be visible to the user to continue receiving location updates) From 1d20f3861dd68d4fdcb469b4e9483d06a72990a6 Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:54:32 +0530 Subject: [PATCH 09/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ce1189..3ace784 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Android library to get user's most precise live location and its updates via a c + Uses Google location services API internally - so you're in safe hands + Simple plug and play design + Extremely light weight library (~50KB) -+ **Full Java support** ++ **Written in Kotlin (with full Java support)** + Android 10+ compatible (gets user's location via foreground location access, i.e., an activity that belongs to your app must be visible to the user to continue receiving location updates) # Screenshots From abfd83e796718b557ab2790421b993e0a45264b7 Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:55:50 +0530 Subject: [PATCH 10/14] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3ace784..33d32d7 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,11 @@ Android library to get user's most precise live location and its updates via a callback! + Highest precision: The location is precise up to 7 decimal places + Either get user's location just one-time, or continue getting live udpates -+ No need to add any permissions in manifest manually -+ No need to add google play services location lib in gradle manually -+ No need to ask runtime permissions manually -+ No need to ask location settings optimization permissions manually ++ No need to manually: + + add any permissions in manifest + + add google play services location lib in gradle + + ask runtime permissions + + ask location settings optimization permissions + Uses Google location services API internally - so you're in safe hands + Simple plug and play design + Extremely light weight library (~50KB) From fec5fd66a28966efe305ecaca853925359b73b9b Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 03:57:43 +0530 Subject: [PATCH 11/14] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 33d32d7..d448851 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Android library to get user's most precise live location and its updates via a c + Extremely light weight library (~50KB) + **Written in Kotlin (with full Java support)** + Android 10+ compatible (gets user's location via foreground location access, i.e., an activity that belongs to your app must be visible to the user to continue receiving location updates) ++ **Import the lib, use the lib, and start receiving user's live location in under 5 mins!** # Screenshots From 14623e939a2261788159ad0c33070321e3fa4d27 Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 04:01:14 +0530 Subject: [PATCH 12/14] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d448851..97f94d9 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,10 @@ PayPal donate button Android library to get user's most precise live location and its updates via a callback! + +Jump to [Setup](https://github.com/mumayank/AirLocation/blob/master/README.md#setup "Setup") or [Usage](https://github.com/mumayank/AirLocation/blob/master/README.md#usage "Usage") + +Features: + Highest precision: The location is precise up to 7 decimal places + Either get user's location just one-time, or continue getting live udpates + No need to manually: From 6156043d0542ab4e3f8b7d34db6995a12efdb338 Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 04:01:45 +0530 Subject: [PATCH 13/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 97f94d9..e975bca 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Jump to [Setup](https://github.com/mumayank/AirLocation/blob/master/README.md#se Features: + Highest precision: The location is precise up to 7 decimal places + Either get user's location just one-time, or continue getting live udpates -+ No need to manually: ++ No need to manually: (the lib takes care of these) + add any permissions in manifest + add google play services location lib in gradle + ask runtime permissions From 60ed47b017650b38c2d6eee7b5de8d9ccf8e7ed3 Mon Sep 17 00:00:00 2001 From: Mayank Mohan Upadhyay Date: Fri, 5 Jun 2020 04:04:11 +0530 Subject: [PATCH 14/14] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e975bca..9e840be 100644 --- a/README.md +++ b/README.md @@ -54,9 +54,10 @@ where LATEST_VERSION is [![](https://jitpack.io/v/mumayank/AirLocation.svg)](htt # Usage -+ Declare airLocation in your activity -+ Override `onActivityResult` and call `airLocation.onActivityResult` inside it -+ Override `onRequestPermissionsResult` and call `airLocation.onRequestPermissionsResult` inside it +1. Declare `airLocation` variable in the Activity +2. Override `onActivityResult` and call `airLocation.onActivityResult` inside it +3. Override `onRequestPermissionsResult` and call `airLocation.onRequestPermissionsResult` inside it +4. When you want to receive user's live location updates, simply initialize `airLocation` variable Example: