diff --git a/AppUpdateChecker/.gitignore b/library/.gitignore similarity index 100% rename from AppUpdateChecker/.gitignore rename to library/.gitignore diff --git a/AppUpdateChecker/build.gradle b/library/build.gradle similarity index 90% rename from AppUpdateChecker/build.gradle rename to library/build.gradle index c8675e3..113246f 100644 --- a/AppUpdateChecker/build.gradle +++ b/library/build.gradle @@ -6,8 +6,8 @@ plugins { id 'maven-publish' } -group = 'com.github.sharkaboi' -version = '1.0.1' +group = 'com.github.Sharkaboi' +version = 'v1.0.2' repositories { google() @@ -15,6 +15,7 @@ repositories { maven { url "https://plugins.gradle.org/m2/" } + maven { url "https://jitpack.io" } } android { @@ -24,7 +25,7 @@ android { minSdkVersion 21 targetSdkVersion 31 versionCode 1 - versionName "1.0.1" + versionName "1.0.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } @@ -70,9 +71,9 @@ afterEvaluate { // Creates a Maven publication called "release". release(MavenPublication) { from components.release - groupId = 'com.github.sharkaboi' + groupId = 'com.github.Sharkaboi' artifactId = 'AppUpdateChecker' - version = '1.0.1' + version = 'v1.0.2' } } } diff --git a/AppUpdateChecker/consumer-rules.pro b/library/consumer-rules.pro similarity index 100% rename from AppUpdateChecker/consumer-rules.pro rename to library/consumer-rules.pro diff --git a/AppUpdateChecker/proguard-rules.pro b/library/proguard-rules.pro similarity index 100% rename from AppUpdateChecker/proguard-rules.pro rename to library/proguard-rules.pro diff --git a/AppUpdateChecker/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml similarity index 100% rename from AppUpdateChecker/src/main/AndroidManifest.xml rename to library/src/main/AndroidManifest.xml diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/AppUpdateChecker.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/AppUpdateChecker.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/AppUpdateChecker.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/AppUpdateChecker.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/extensions/ContextExtensions.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/extensions/ContextExtensions.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/extensions/ContextExtensions.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/extensions/ContextExtensions.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/extensions/StringExtensions.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/extensions/StringExtensions.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/extensions/StringExtensions.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/extensions/StringExtensions.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/extensions/ValidationExtensions.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/extensions/ValidationExtensions.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/extensions/ValidationExtensions.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/extensions/ValidationExtensions.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/interfaces/IAppUpdateChecker.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/interfaces/IAppUpdateChecker.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/interfaces/IAppUpdateChecker.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/interfaces/IAppUpdateChecker.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/mappers/UpdateStateMappers.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/mappers/UpdateStateMappers.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/mappers/UpdateStateMappers.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/mappers/UpdateStateMappers.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/models/AppUpdateCheckerSource.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/models/AppUpdateCheckerSource.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/models/AppUpdateCheckerSource.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/models/AppUpdateCheckerSource.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/models/UpdateState.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/models/UpdateState.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/models/UpdateState.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/models/UpdateState.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/provider/AppUpdateServices.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/provider/AppUpdateServices.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/provider/AppUpdateServices.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/provider/AppUpdateServices.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidConstants.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidConstants.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidConstants.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidConstants.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidExtensions.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidExtensions.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidExtensions.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidExtensions.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidResponse.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidResponse.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidResponse.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidResponse.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidService.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidService.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidService.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/fdroid/FdroidService.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubConstants.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubConstants.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubConstants.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubConstants.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubResponse.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubResponse.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubResponse.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubResponse.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubService.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubService.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubService.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/github/GithubService.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonConstants.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonConstants.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonConstants.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonConstants.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonResponse.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonResponse.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonResponse.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonResponse.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonService.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonService.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonService.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/json/JsonService.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLConstants.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLConstants.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLConstants.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLConstants.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLResponse.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLResponse.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLResponse.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLResponse.kt diff --git a/AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLService.kt b/library/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLService.kt similarity index 100% rename from AppUpdateChecker/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLService.kt rename to library/src/main/java/com/sharkaboi/appupdatechecker/sources/xml/XMLService.kt diff --git a/AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/AppUpdateCheckerTest.kt b/library/src/test/java/com/sharkaboi/appupdatechecker/AppUpdateCheckerTest.kt similarity index 100% rename from AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/AppUpdateCheckerTest.kt rename to library/src/test/java/com/sharkaboi/appupdatechecker/AppUpdateCheckerTest.kt diff --git a/AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/FdroidTest.kt b/library/src/test/java/com/sharkaboi/appupdatechecker/FdroidTest.kt similarity index 100% rename from AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/FdroidTest.kt rename to library/src/test/java/com/sharkaboi/appupdatechecker/FdroidTest.kt diff --git a/AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/GithubTest.kt b/library/src/test/java/com/sharkaboi/appupdatechecker/GithubTest.kt similarity index 100% rename from AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/GithubTest.kt rename to library/src/test/java/com/sharkaboi/appupdatechecker/GithubTest.kt diff --git a/AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/JsonTest.kt b/library/src/test/java/com/sharkaboi/appupdatechecker/JsonTest.kt similarity index 100% rename from AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/JsonTest.kt rename to library/src/test/java/com/sharkaboi/appupdatechecker/JsonTest.kt diff --git a/AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/XMLTest.kt b/library/src/test/java/com/sharkaboi/appupdatechecker/XMLTest.kt similarity index 100% rename from AppUpdateChecker/src/test/java/com/sharkaboi/appupdatechecker/XMLTest.kt rename to library/src/test/java/com/sharkaboi/appupdatechecker/XMLTest.kt diff --git a/settings.gradle b/settings.gradle index acd187e..d8f14a1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1 @@ -include ':AppUpdateChecker' -rootProject.name = "AppUpdateChecker" +include ':library'