diff --git a/app-native/build.gradle b/app-native/build.gradle index 1d33c9c48..7def49238 100644 --- a/app-native/build.gradle +++ b/app-native/build.gradle @@ -52,12 +52,7 @@ android { } -repositories { - // needed for using sdk-native from countly maven repo - mavenCentral() -} - -// sdk and sdk-native are pulled from submodules of the project. +// sdk and sdk-native are pulled from submodules of the project. // If you are running app independently, you may pull their latest version from our maven repo using the commented lines. dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) @@ -83,7 +78,6 @@ buildscript { classpath group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.14.1' // classpath files('../upload-plugin/build/libs/upload-plugin.jar') //classpath group: 'ly.count.android', 'name': 'sdk-plugin', 'version': '20.11.8' - } } diff --git a/app/build.gradle b/app/build.gradle index 9af77157f..ec58c039e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,29 +5,6 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' -/* -//for automatic symbol upload -apply plugin: ly.count.android.plugins.UploadSymbolsPlugin - -buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath group: 'ly.count.android', 'name': 'sdk-plugin', 'version': '20.11.8' - } -} -*/ - -repositories { - mavenCentral() - - //required for huawei push - maven { - url "https://developer.huawei.com/repo/" - } -} - android { compileSdk 34 namespace 'ly.count.android.demo' diff --git a/build.gradle b/build.gradle index 7035f45e0..aa931683f 100644 --- a/build.gradle +++ b/build.gradle @@ -1,22 +1,14 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. - buildscript { ext.kotlin_version = '1.8.0' repositories { - maven { - url 'https://developer.huawei.com/repo/' - } + jcenter() google() - mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:7.4.2' - classpath 'com.github.dcendents:android-maven-plugin:1.2' classpath 'com.google.gms:google-services:4.3.15' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.huawei.agconnect:agcp:1.3.1.300' - classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.5.3" } } @@ -25,7 +17,11 @@ allprojects { options.addStringOption('Xdoclint:none', '-quiet') } repositories { + jcenter() google() mavenCentral() + maven { + url 'https://dl.bintray.com/countly/maven' + } } } diff --git a/sdk/build.gradle b/sdk/build.gradle index de770dec7..34b951320 100644 --- a/sdk/build.gradle +++ b/sdk/build.gradle @@ -2,13 +2,12 @@ apply plugin: 'com.android.library' apply plugin: "com.vanniktech.maven.publish" //for publishing buildscript { - repositories { - mavenCentral() - } - dependencies { - //classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0" //test coverage reports - classpath 'com.vanniktech:gradle-maven-publish-plugin:0.21.0' //for publishing - } + repositories { + jcenter() + } + dependencies { + classpath 'com.novoda:bintray-release:0.9.2' + } } android { diff --git a/upload-plugin/build.gradle b/upload-plugin/build.gradle index ae72ea43a..0623d3786 100644 --- a/upload-plugin/build.gradle +++ b/upload-plugin/build.gradle @@ -1,10 +1,7 @@ buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath 'com.vanniktech:gradle-maven-publish-plugin:0.21.0' //for publishing - } + dependencies { + classpath 'com.novoda:bintray-release:0.9.2' + } } plugins { @@ -21,14 +18,20 @@ gradlePlugin { } } -repositories { - mavenCentral() +dependencies { + implementation gradleApi() + implementation localGroovy() + implementation 'com.squareup.okhttp3:okhttp:3.14.1' } -dependencies { - implementation gradleApi() - implementation localGroovy() - implementation 'com.squareup.okhttp3:okhttp:3.14.9' +publish { + userOrg = 'countly' + groupId = 'ly.count.android' + artifactId = 'sdk-plugin' + publishVersion = '20.04.3' + desc = 'Gradle plugin for automatic upload of symbol files' + website = 'https://github.com/Countly/countly-sdk-android' + autoPublish = false } apply plugin: "com.vanniktech.maven.publish" \ No newline at end of file