-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dropping smartlocation-library in favor of native location retrieval …
…(WIP)
- Loading branch information
1 parent
69530cd
commit 31d8369
Showing
12 changed files
with
280 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 22 additions & 22 deletions
44
omniNotes/src/alpha/java/it/feio/android/omninotes/helpers/GeocodeProviderFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
/* | ||
* Copyright (C) 2013-2024 Federico Iosue ([email protected]) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package it.feio.android.omninotes.helpers; | ||
|
||
public class GeocodeProviderFactory extends GeocodeProviderBaseFactory { | ||
|
||
} | ||
///* | ||
// * Copyright (C) 2013-2024 Federico Iosue ([email protected]) | ||
// * | ||
// * This program is free software: you can redistribute it and/or modify | ||
// * it under the terms of the GNU General Public License as published by | ||
// * the Free Software Foundation, either version 3 of the License, or | ||
// * (at your option) any later version. | ||
// * | ||
// * This program is distributed in the hope that it will be useful, | ||
// * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// * GNU General Public License for more details. | ||
// * | ||
// * You should have received a copy of the GNU General Public License | ||
// * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
// */ | ||
// | ||
//package it.feio.android.omninotes.helpers; | ||
// | ||
//public class GeocodeProviderFactory extends GeocodeProviderBaseFactory { | ||
// | ||
//} |
82 changes: 41 additions & 41 deletions
82
.../src/androidTest/java/it/feio/android/omninotes/helpers/GeocodeProviderBaseFactoryTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
/* | ||
* Copyright (C) 2013-2024 Federico Iosue ([email protected]) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package it.feio.android.omninotes.helpers | ||
|
||
import it.feio.android.omninotes.testutils.BaseAndroidTestCase | ||
import org.junit.Assert.assertNotNull | ||
import org.junit.Assert.assertTrue | ||
import org.junit.Test | ||
|
||
class GeocodeProviderBaseFactoryTest : BaseAndroidTestCase() { | ||
@Test | ||
@Throws(Exception::class) | ||
fun checkUtilityClassWellDefined() { | ||
assertUtilityClassWellDefined(GeocodeProviderBaseFactory::class.java, true, true) | ||
} | ||
|
||
@Test | ||
fun provider() { | ||
assertNotNull(GeocodeProviderBaseFactory.getProvider(testContext)) | ||
} | ||
|
||
@Test | ||
fun checkHighAccuracyLocationProvider() { | ||
assertTrue(GeocodeProviderBaseFactory.checkHighAccuracyLocationProvider(testContext)) | ||
} | ||
} | ||
///* | ||
// * Copyright (C) 2013-2024 Federico Iosue ([email protected]) | ||
// * | ||
// * This program is free software: you can redistribute it and/or modify | ||
// * it under the terms of the GNU General Public License as published by | ||
// * the Free Software Foundation, either version 3 of the License, or | ||
// * (at your option) any later version. | ||
// * | ||
// * This program is distributed in the hope that it will be useful, | ||
// * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// * GNU General Public License for more details. | ||
// * | ||
// * You should have received a copy of the GNU General Public License | ||
// * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
// */ | ||
//package it.feio.android.omninotes.helpers | ||
// | ||
//import it.feio.android.omninotes.testutils.BaseAndroidTestCase | ||
//import org.junit.Assert.assertNotNull | ||
//import org.junit.Assert.assertTrue | ||
//import org.junit.Test | ||
// | ||
//class GeocodeProviderBaseFactoryTest : BaseAndroidTestCase() { | ||
// | ||
// @Test | ||
// @Throws(Exception::class) | ||
// fun checkUtilityClassWellDefined() { | ||
// assertUtilityClassWellDefined(GeocodeProviderBaseFactory::class.java, true, true) | ||
// } | ||
// | ||
// @Test | ||
// fun provider() { | ||
// assertNotNull(GeocodeProviderBaseFactory.getProvider(testContext)) | ||
// } | ||
// | ||
// @Test | ||
// fun checkHighAccuracyLocationProvider() { | ||
// assertTrue(GeocodeProviderBaseFactory.checkHighAccuracyLocationProvider(testContext)) | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 22 additions & 22 deletions
44
omniNotes/src/beta/java/it/feio/android/omninotes/helpers/GeocodeProviderFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
/* | ||
* Copyright (C) 2017-2024 Federico Iosue ([email protected]) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundatibehaon, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package it.feio.android.omninotes.helpers; | ||
|
||
public class GeocodeProviderFactory extends GeocodeProviderBaseFactory { | ||
|
||
} | ||
///* | ||
// * Copyright (C) 2017-2024 Federico Iosue ([email protected]) | ||
// * | ||
// * This program is free software: you can redistribute it and/or modify | ||
// * it under the terms of the GNU General Public License as published by | ||
// * the Free Software Foundatibehaon, either version 3 of the License, or | ||
// * (at your option) any later version. | ||
// * | ||
// * This program is distributed in the hope that it will be useful, | ||
// * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// * GNU General Public License for more details. | ||
// * | ||
// * You should have received a copy of the GNU General Public License | ||
// * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
// */ | ||
// | ||
//package it.feio.android.omninotes.helpers; | ||
// | ||
//public class GeocodeProviderFactory extends GeocodeProviderBaseFactory { | ||
// | ||
//} |
66 changes: 33 additions & 33 deletions
66
omniNotes/src/foss/java/it/feio/android/omninotes/helpers/GeocodeProviderFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
/* | ||
* Copyright (C) 2013-2024 Federico Iosue ([email protected]) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package it.feio.android.omninotes.helpers; | ||
|
||
import android.content.Context; | ||
import io.nlopez.smartlocation.location.LocationProvider; | ||
import io.nlopez.smartlocation.location.providers.LocationManagerProvider; | ||
|
||
public class GeocodeProviderFactory { | ||
|
||
private GeocodeProviderFactory() { | ||
// hides public constructor | ||
} | ||
|
||
public static LocationProvider getProvider(Context context) { | ||
return new LocationManagerProvider(); | ||
} | ||
} | ||
///* | ||
// * Copyright (C) 2013-2024 Federico Iosue ([email protected]) | ||
// * | ||
// * This program is free software: you can redistribute it and/or modify | ||
// * it under the terms of the GNU General Public License as published by | ||
// * the Free Software Foundation, either version 3 of the License, or | ||
// * (at your option) any later version. | ||
// * | ||
// * This program is distributed in the hope that it will be useful, | ||
// * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// * GNU General Public License for more details. | ||
// * | ||
// * You should have received a copy of the GNU General Public License | ||
// * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
// */ | ||
// | ||
//package it.feio.android.omninotes.helpers; | ||
// | ||
//import android.content.Context; | ||
//import io.nlopez.smartlocation.location.LocationProvider; | ||
//import io.nlopez.smartlocation.location.providers.LocationManagerProvider; | ||
// | ||
//public class GeocodeProviderFactory { | ||
// | ||
// private GeocodeProviderFactory() { | ||
// // hides public constructor | ||
// } | ||
// | ||
// public static LocationProvider getProvider(Context context) { | ||
// return new LocationManagerProvider(); | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.