「Countly」
1、调通公司服务器部署的节点; 2、调通上传maven
This commit is contained in:
@@ -9,8 +9,8 @@ import ly.count.android.sdk.ModuleLog;
|
||||
import ly.count.android.sdk.PerformanceCounterCollector;
|
||||
|
||||
public class App extends Application {
|
||||
private final static String COUNTLY_SERVER_URL = "http://172.30.10.190";
|
||||
private final static String COUNTLY_APP_KEY = "5efc02a15444c88cbf8056ec66ab291ea3cd3240";
|
||||
private final static String COUNTLY_SERVER_URL = "http://countly.zhidaozhixing.com";
|
||||
private final static String COUNTLY_APP_KEY = "45cccb4a005ca14b79fca7d24b69e1a67730e325";
|
||||
private final static String DEVICE_ID = "YOUR_DEVICE_ID";
|
||||
|
||||
public static PerformanceCounterCollector appPcc;
|
||||
|
||||
@@ -9,8 +9,8 @@ import ly.count.android.sdk.CountlyConfig
|
||||
* Main Application class
|
||||
*/
|
||||
class App : Application() {
|
||||
private val COUNTLY_SERVER_URL = "http://172.30.10.190"
|
||||
private val COUNTLY_APP_KEY = "5efc02a15444c88cbf8056ec66ab291ea3cd3240"
|
||||
private val COUNTLY_SERVER_URL = "http://countly.zhidaozhixing.com"
|
||||
private val COUNTLY_APP_KEY = "45cccb4a005ca14b79fca7d24b69e1a67730e325"
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: ly.count.android.plugins.UploadSymbolsPlugin
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||||
@@ -11,7 +12,6 @@ android {
|
||||
versionName "1.0"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@@ -34,11 +34,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
// needed for using sdk-native from countly maven repo
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
// 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 {
|
||||
@@ -51,12 +46,39 @@ dependencies {
|
||||
//implementation 'ly.count.android:sdk-native:21.11.0'
|
||||
}
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.14.1'
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
//tasks.whenTaskAdded { task ->
|
||||
// if (task.name.startsWith('assemble')) {
|
||||
// //this would upload your Java mapping file
|
||||
// task.dependsOn('uploadJaveSymbols')
|
||||
//
|
||||
// //this would upload your native (c++) symbols
|
||||
// task.dependsOn('uploadNativeSymbols')
|
||||
// }
|
||||
//}
|
||||
@@ -9,8 +9,8 @@ import ly.count.android.sdknative.CountlyNative;
|
||||
|
||||
public class App extends Application {
|
||||
|
||||
private final static String COUNTLY_SERVER_URL = "http://172.30.10.190";
|
||||
private final static String COUNTLY_APP_KEY = "5efc02a15444c88cbf8056ec66ab291ea3cd3240";
|
||||
private final static String COUNTLY_SERVER_URL = "http://countly.zhidaozhixing.com";
|
||||
private final static String COUNTLY_APP_KEY = "45cccb4a005ca14b79fca7d24b69e1a67730e325";
|
||||
private final static String DEFAULT_URL = "https://your.server.ly";
|
||||
private final static String DEFAULT_APP_KEY = "YOUR_APP_KEY";
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@ import static ly.count.android.sdk.messaging.CountlyPush.COUNTLY_BROADCAST_PERMI
|
||||
|
||||
public class App extends Application {
|
||||
/** You should use try.count.ly instead of YOUR_SERVER for the line below if you are using Countly trial service */
|
||||
private final static String COUNTLY_SERVER_URL = "http://172.30.10.190";
|
||||
private final static String COUNTLY_APP_KEY = "5efc02a15444c88cbf8056ec66ab291ea3cd3240";
|
||||
private final static String COUNTLY_SERVER_URL = "http://countly.zhidaozhixing.com";
|
||||
private final static String COUNTLY_APP_KEY = "45cccb4a005ca14b79fca7d24b69e1a67730e325";
|
||||
private final static String DEFAULT_URL = "https://your.server.ly";
|
||||
private final static String DEFAULT_APP_KEY = "YOUR_APP_KEY";
|
||||
|
||||
|
||||
@@ -1,34 +1,44 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.21.0' //for publishing
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0' //for publishing
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'java-gradle-plugin'
|
||||
id 'groovy'
|
||||
id 'java-gradle-plugin'
|
||||
id 'groovy'
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
uploadSymbolPlugin {
|
||||
id = 'ly.count.android.plugins.upload-symbols'
|
||||
implementationClass = 'ly.count.android.plugins.UploadSymbolsPlugin'
|
||||
plugins {
|
||||
uploadSymbolPlugin {
|
||||
id = 'ly.count.android.plugins.upload-symbols'
|
||||
implementationClass = 'ly.count.android.plugins.UploadSymbolsPlugin'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation gradleApi()
|
||||
implementation localGroovy()
|
||||
implementation 'com.squareup.okhttp3:okhttp:3.14.9'
|
||||
implementation gradleApi()
|
||||
implementation localGroovy()
|
||||
implementation 'com.squareup.okhttp3:okhttp:3.14.9'
|
||||
}
|
||||
|
||||
apply plugin: "com.vanniktech.maven.publish"
|
||||
apply plugin: "com.vanniktech.maven.publish"
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "ZhiDaoAuto"
|
||||
url = "https://nexus.zhidaoauto.com/repository/maven-releases/"
|
||||
credentials(PasswordCredentials.class)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user