「Countly」

1、完成Maven上传,待接入到鹰眼
This commit is contained in:
donghongyu
2024-11-01 14:54:43 +08:00
parent 79e55126d3
commit 38aee74d23
12 changed files with 61 additions and 48 deletions

View File

@@ -1,4 +1,5 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: ly.count.android.plugins.UploadSymbolsPlugin
android { android {
compileSdkVersion rootProject.ext.android.compileSdkVersion compileSdkVersion rootProject.ext.android.compileSdkVersion
@@ -79,8 +80,35 @@ dependencies {
annotationProcessor 'com.elegant.spi:compiler:1.0.3' //编译时库 annotationProcessor 'com.elegant.spi:compiler:1.0.3' //编译时库
// implementation 'ly.count.android:sdk:24.4.1' implementation 'com.mogo.cloud:countly-sdk:1.4.7.49.18-debug'
// implementation 'ly.count.android:sdk-native:24.4.1' implementation 'com.mogo.cloud:countly-sdk-native:1.4.7.49.18-debug'
implementation project(":libraries:countly:sdk") // implementation project(":libraries:countly:sdk")
implementation project(":libraries:countly:sdk-native") // implementation project(":libraries:countly:sdk-native")
}
countly {
// required by both tasks
server "http://countly.zhidaozhixing.com"
// same app_key used for SDK integration
app_key "45cccb4a005ca14b79fca7d24b69e1a67730e325"
// location of mapping.txt file relative to project build directory
mappingFile "outputs/mapping/release/mapping.txt"
// note that will be saved with the upload and can be checked in the UI
noteJava "sdk-plugin automatic upload of mapping.txt"
// optional properties for uploadNativeSymbols. Shown are the default values.
// directory of .so files relative to project build directory.
// you can check the tar.gz file created under intermediates/countly
// BUILD_TYPE could be debug or release
nativeObjectFilesDir "intermediates/merged_native_libs/BUILD_TYPE"
// path for breakpad tool dump_syms executable
dumpSymsPath "/usr/bin"
// note that will be saved with the upload and can be checked in the UI
noteNative "sdk-plugin automatic upload of breakpad symbols"
} }

View File

@@ -30,7 +30,7 @@ buildscript {
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
// classpath 'ly.count.android:sdk-plugin:24.4.1' // classpath 'ly.count.android:sdk-plugin:24.4.1'
classpath group: 'com.mogo.cloud', 'name': 'sdk-plugin', 'version': '1.4.7.42' classpath group: 'com.mogo.cloud', 'name': 'upload-plugin', 'version': '1.4.7.49.18-debug'
} }

View File

@@ -59,6 +59,10 @@ MOGO_TELEMATIC_VERSION=1.4.7.42
MOGO_V2X_VERSION=1.4.7.42 MOGO_V2X_VERSION=1.4.7.42
# SKIN # SKIN
MOGO_SKIN_VERSION=1.4.7.49.18-debug MOGO_SKIN_VERSION=1.4.7.49.18-debug
# SDK
SDK_VERSION=1.4.7.49.18-debug
SDK_NATIVE_VERSION=1.4.7.49.18-debug
UPLOAD_PLUGIN_VERSION=1.4.7.49.18-debug

View File

@@ -3,7 +3,7 @@ apply plugin: 'maven-publish'
task loggerSourcesJar(type: Jar) { task loggerSourcesJar(type: Jar) {
classifier = 'sources' classifier = 'sources'
from android.sourceSets.main.java.srcDirs // from android.sourceSets.main.java.srcDirs
// if (plugins.hasPlugin("java-library")) { // if (plugins.hasPlugin("java-library")) {
// from sourceSets.main.java.srcDirs // from sourceSets.main.java.srcDirs
// } // }

View File

@@ -40,10 +40,10 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation project(':libraries:countly:sdk') // implementation project(':libraries:countly:sdk')
//implementation 'ly.count.android:sdk:21.11.0' implementation 'com.mogo.cloud:countly-sdk:1.4.7.49.18-debug'
implementation project(':libraries:countly:sdk-native') // implementation project(':libraries:countly:sdk-native')
//implementation 'ly.count.android:sdk-native:21.11.0' implementation 'com.mogo.cloud:countly-sdk-native:1.4.7.49.18-debug'
} }

View File

@@ -50,7 +50,8 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation project(':libraries:countly:sdk') // implementation project(':libraries:countly:sdk')
implementation 'com.mogo.cloud:countly-sdk:1.4.7.49.18-debug'
//implementation 'ly.count.android:sdk:21.11.0' //implementation 'ly.count.android:sdk:21.11.0'
//implementation 'ly.count.android:sdk-plugin:21.11.0' //implementation 'ly.count.android:sdk-plugin:21.11.0'

View File

@@ -37,3 +37,5 @@ tasks.whenTaskAdded { task ->
task.dependsOn('copyLibs') task.dependsOn('copyLibs')
} }
} }
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()

View File

@@ -1,6 +1,5 @@
#RELEASE FIELDS #RELEASE FIELDS
POM_ARTIFACT_ID=sdk-native GROUP=com.mogo.cloud
POM_ARTIFACT_ID=countly-sdk-native
POM_NAME=Countly Android SDK native crash integration VERSION_CODE=1
POM_DESCRIPTION=Countly Android Native Crash Support VERSION_NAME=1.0.9-SNAPSHOT
POM_INCEPTION_YEAR=2019

View File

@@ -53,3 +53,5 @@ dependencies {
//required for as long the min SDK version is smaller than 21 //required for as long the min SDK version is smaller than 21
} }
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()

View File

@@ -1,5 +1,5 @@
#RELEASE FIELDS #RELEASE FIELDS
POM_ARTIFACT_ID=sdk GROUP=com.mogo.cloud
POM_NAME=Countly Android SDK POM_ARTIFACT_ID=countly-sdk
POM_DESCRIPTION=Android SDK for Countly mobile analytics VERSION_CODE=1
POM_INCEPTION_YEAR=2015 VERSION_NAME=1.0.9-SNAPSHOT

View File

@@ -1,12 +1,3 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0' //for publishing
}
}
plugins { plugins {
id 'java-gradle-plugin' id 'java-gradle-plugin'
id 'groovy' id 'groovy'
@@ -21,9 +12,6 @@ gradlePlugin {
} }
} }
repositories {
mavenCentral()
}
dependencies { dependencies {
implementation gradleApi() implementation gradleApi()
@@ -31,14 +19,4 @@ dependencies {
implementation 'com.squareup.okhttp3:okhttp:3.14.9' implementation 'com.squareup.okhttp3:okhttp:3.14.9'
} }
apply plugin: "com.vanniktech.maven.publish" apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
publishing {
repositories {
maven {
name = "ZhiDaoAuto"
url = "https://nexus.zhidaoauto.com/repository/maven-releases/"
credentials(PasswordCredentials.class)
}
}
}

View File

@@ -1,5 +1,4 @@
#RELEASE FIELDS GROUP=com.mogo.cloud
POM_ARTIFACT_ID=sdk-plugin POM_ARTIFACT_ID=countly-upload-plugin
POM_NAME=Countly Android SDK symbol upload plugin VERSION_CODE=1
POM_DESCRIPTION=Gradle plugin for automatic upload of symbol files VERSION_NAME=1.0.9-SNAPSHOT
POM_INCEPTION_YEAR=2019