Skip to content

Commit

Permalink
fix: jitpack publish
Browse files Browse the repository at this point in the history
  • Loading branch information
GennadySX committed Nov 14, 2023
1 parent 7e2d962 commit 61e4ad2
Show file tree
Hide file tree
Showing 94 changed files with 1,189 additions and 1,266 deletions.
83 changes: 0 additions & 83 deletions .circleci/config.yml

This file was deleted.

21 changes: 8 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
.DS_Store
node_modules
npm-debug.log

# Xcode
xcuserdata
project.xcworkspace

# Android/IJ
.idea
*.iml
.gradle
/local.properties
/.idea
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
*.iml
build
*.skip
19 changes: 0 additions & 19 deletions .npmignore

This file was deleted.

6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
Background Geolocation for Android

[![CircleCI](https://circleci.com/gh/mauron85/background-geolocation-android/tree/master.svg?style=shield)](https://circleci.com/gh/mauron85/background-geolocation-android/tree/master)

used by:

* [react-native-background-geolocation](https://github.com/mauron85/react-native-background-geolocation)

* [cordova-plugin-background-geolocation](https://github.com/mauron85/cordova-plugin-background-geolocation)
* [react-native-background-geolocation](https://github.com/gennadysx/react-native-background-geolocation)
1 change: 1 addition & 0 deletions backgroundgeolocation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
2 changes: 1 addition & 1 deletion VERSIONS.gradle → backgroundgeolocation/VERSIONS.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.gradle.util.GradleVersion

def DEFAULT_COMPILE_SDK_VERSION = 30
def DEFAULT_BUILD_TOOLS_VERSION = "30.0.2"
def DEFAULT_BUILD_TOOLS_VERSION = "30.0.3"
def DEFAULT_TARGET_SDK_VERSION = 30
def DEFAULT_MIN_SDK_VERSION = 21
def DEFAULT_PLAY_SERVICES_VERSION = "11+"
Expand Down
105 changes: 105 additions & 0 deletions backgroundgeolocation/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
apply plugin: 'com.android.application'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'org.jetbrains.kotlin.android'


apply from: './VERSIONS.gradle'
def accountPrefix = getAccountPrefix()
def resourcePrefix = getResourcePrefix()

// https://hackernoon.com/android-how-to-add-gradle-dependencies-using-foreach-c4cbcc070458
def projDependencies = [
[configuration: "implementation", dependency: androidLibs.playServicesLocation],
[configuration: "implementation", dependency: androidLibs.supportCompat],
[configuration: "implementation", dependency: androidLibs.appcompat],
[configuration: "implementation", dependency: libs.permissions,
options: { exclude group: 'com.android.support', module: 'appcompat-v7'}],
[configuration: "implementation", dependency: libs.logback],
[configuration: "implementation", dependency: libs.slf4j],
[configuration: "implementation", dependency: libs.promise],
]

buildscript {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
gradlePluginPortal()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

android {

compileSdkVersion project.ext.getCompileSdkVersion()
buildToolsVersion project.ext.getBuildToolsVersion()

// Tip: https://stackoverflow.com/questions/39987669/renamingdelegatingcontext-is-deprecated-how-do-we-test-sqlite-db-now/52170737#52170737
// Gradle automatically adds 'android.test.runner' as a dependency.

defaultConfig {
resValue "string", resourcePrefix + "account_name", 'Locations'
resValue "string", resourcePrefix + "account_type", accountPrefix + '.account'
resValue "string", resourcePrefix + "content_authority", accountPrefix + '.provider'
minSdkVersion project.ext.getMinSdkVersion()
versionCode 2
versionName "1.0.1"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

}

lintOptions {
abortOnError false
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}

}

dependencies {
projDependencies.each {
add(it.configuration, it.dependency)
}
implementation fileTree(include: ['*.jar'], dir: 'libs')
}



afterEvaluate {
publishing {
publications {
release(MavenPublication) {
groupId = "com.gennadysx"
artifactId = "geolocation"
version = "1.0.1"
from components.release
}
}
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.gennadysx.backgroundgeolocation" android:versionName="1.0" android:versionCode="1">
package="com.gennadysx.geolocation" android:versionName="1.0" android:versionCode="1">
<application>
<service
android:name="com.gennadysx.bgloc.sync.SyncService"
android:name="com.gennadysx.geolocation.bgloc.sync.SyncService"
android:exported="true"
android:process=":sync">
<intent-filter>
Expand All @@ -31,7 +31,7 @@
android:resource="@xml/syncadapter"/>
</service>
<service
android:name="com.gennadysx.bgloc.sync.AuthenticatorService">
android:name="com.gennadysx.geolocation.bgloc.sync.AuthenticatorService">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator"/>
</intent-filter>
Expand All @@ -40,12 +40,12 @@
android:resource="@xml/authenticator" />
</service>
<provider
android:name="com.gennadysx.bgloc.data.provider.LocationContentProvider"
android:name="com.gennadysx.geolocation.bgloc.data.provider.LocationContentProvider"
android:authorities="@string/gennadysx_bgloc_content_authority"
android:exported="false"
android:syncable="true"/>
<service android:enabled="true" android:exported="false" android:name="com.gennadysx.bgloc.service.LocationServiceImpl" android:foregroundServiceType="location" />
<receiver android:enabled="true" android:exported="true" android:name="com.gennadysx.bgloc.BootCompletedReceiver">
<service android:enabled="true" android:exported="false" android:name="com.gennadysx.geolocation.bgloc.service.LocationServiceImpl" android:foregroundServiceType="location" />
<receiver android:enabled="true" android:exported="true" android:name="com.gennadysx.geolocation.bgloc.BootCompletedReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gennadysx.bgloc;
package com.gennadysx.geolocation.bgloc;

import android.Manifest;
import android.accounts.Account;
Expand All @@ -18,25 +18,25 @@
import android.support.v4.content.LocalBroadcastManager;
import android.text.TextUtils;

import com.gennadysx.geolocation.bgloc.data.BackgroundActivity;
import com.gennadysx.geolocation.bgloc.data.BackgroundLocation;
import com.gennadysx.geolocation.bgloc.data.ConfigurationDAO;
import com.gennadysx.geolocation.bgloc.data.DAOFactory;
import com.gennadysx.geolocation.bgloc.data.LocationDAO;
import com.gennadysx.geolocation.bgloc.data.LocationTransform;
import com.gennadysx.geolocation.bgloc.provider.LocationProvider;
import com.gennadysx.geolocation.bgloc.service.LocationService;
import com.gennadysx.geolocation.bgloc.service.LocationServiceImpl;
import com.gennadysx.geolocation.bgloc.service.LocationServiceProxy;
import com.gennadysx.geolocation.bgloc.sync.AccountHelper;
import com.gennadysx.geolocation.bgloc.sync.NotificationHelper;
import com.gennadysx.geolocation.bgloc.sync.SyncService;
import com.gennadysx.geolocation.logging.DBLogReader;
import com.gennadysx.geolocation.logging.LogEntry;
import com.gennadysx.geolocation.logging.LoggerManager;
import com.gennadysx.geolocation.logging.UncaughtExceptionLogger;
import com.github.jparkie.promise.Promise;
import com.intentfilter.androidpermissions.PermissionManager;
import com.gennadysx.bgloc.data.BackgroundActivity;
import com.gennadysx.bgloc.data.BackgroundLocation;
import com.gennadysx.bgloc.data.ConfigurationDAO;
import com.gennadysx.bgloc.data.DAOFactory;
import com.gennadysx.bgloc.data.LocationDAO;
import com.gennadysx.bgloc.provider.LocationProvider;
import com.gennadysx.bgloc.service.LocationService;
import com.gennadysx.bgloc.service.LocationServiceImpl;
import com.gennadysx.bgloc.service.LocationServiceProxy;
import com.gennadysx.bgloc.data.LocationTransform;
import com.gennadysx.bgloc.sync.AccountHelper;
import com.gennadysx.bgloc.sync.NotificationHelper;
import com.gennadysx.bgloc.sync.SyncService;
import com.gennadysx.logging.DBLogReader;
import com.gennadysx.logging.LogEntry;
import com.gennadysx.logging.LoggerManager;
import com.gennadysx.logging.UncaughtExceptionLogger;

import org.json.JSONException;
import org.slf4j.event.Level;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
This is a new class
*/

package com.gennadysx.bgloc;
package com.gennadysx.geolocation.bgloc;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.util.Log;

import com.gennadysx.bgloc.data.ConfigurationDAO;
import com.gennadysx.bgloc.data.DAOFactory;
import com.gennadysx.bgloc.service.LocationServiceImpl;
import com.gennadysx.geolocation.bgloc.data.ConfigurationDAO;
import com.gennadysx.geolocation.bgloc.data.DAOFactory;
import com.gennadysx.geolocation.bgloc.service.LocationServiceImpl;

import org.json.JSONException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
This is a new class
*/

package com.gennadysx.bgloc;
package com.gennadysx.geolocation.bgloc;

import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Nullable;

import com.gennadysx.bgloc.data.AbstractLocationTemplate;
import com.gennadysx.bgloc.data.LocationTemplate;
import com.gennadysx.bgloc.data.LocationTemplateFactory;
import com.gennadysx.utils.CloneHelper;
import com.gennadysx.geolocation.bgloc.data.AbstractLocationTemplate;
import com.gennadysx.geolocation.bgloc.data.LocationTemplate;
import com.gennadysx.geolocation.bgloc.data.LocationTemplateFactory;
import com.gennadysx.geolocation.utils.CloneHelper;

import org.json.JSONException;
import org.json.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gennadysx.bgloc;
package com.gennadysx.geolocation.bgloc;

public interface ConnectivityListener {
boolean hasConnectivity();
Expand Down
Loading

0 comments on commit 61e4ad2

Please sign in to comment.