-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from xuexiangjys/dev/1.0.1
Dev/1.0.1
- Loading branch information
Showing
83 changed files
with
4,898 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
/* | ||
* Copyright (C) 2019 xuexiangjys([email protected]) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
apply plugin: 'com.android.application' | ||
apply plugin: 'com.xuexiang.xaop' //引用xaop插件 | ||
|
||
android { | ||
compileSdkVersion build_versions.target_sdk | ||
buildToolsVersion build_versions.build_tools | ||
|
||
defaultConfig { | ||
applicationId "com.xuexiang.xgdemo" | ||
minSdkVersion 19 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
ndk { | ||
// 设置支持的SO库 | ||
abiFilters 'armeabi', 'x86' | ||
//,'armeabi-v7a', 'x86', 'x86_64', 'arm64-v8a','mips','mips64' | ||
|
||
manifestPlaceholders = [ | ||
XG_ACCESS_ID : "2100343749", | ||
XG_ACCESS_KEY: "AM1AL86JK12B", | ||
HW_APPID : "101139333", | ||
PACKAGE_NAME : "com.xuexiang.xgdemo" | ||
] | ||
} | ||
} | ||
|
||
signingConfigs { | ||
if (isNeedPackage.toBoolean()) { | ||
release { | ||
storeFile file(app_release.storeFile) | ||
storePassword app_release.storePassword | ||
keyAlias app_release.keyAlias | ||
keyPassword app_release.keyPassword | ||
} | ||
} | ||
debug { | ||
storeFile file("./debug.jks") | ||
storePassword "123456" | ||
keyAlias "debug" | ||
keyPassword "123456" | ||
} | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled true | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
if (isNeedPackage.toBoolean()) { | ||
signingConfig signingConfigs.release | ||
} | ||
} | ||
|
||
debug { | ||
debuggable true | ||
minifyEnabled false | ||
signingConfig signingConfigs.debug | ||
} | ||
} | ||
|
||
if (isNeedPackage.toBoolean()) { | ||
applicationVariants.all { variant -> | ||
variant.outputs.all { | ||
if (variant.buildType.name.equals('release')) { | ||
outputFileName = "xgdemo_${defaultConfig.versionName}.apk" | ||
} | ||
} | ||
} | ||
} | ||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation deps.support.app_compat | ||
testImplementation deps.junit | ||
androidTestImplementation deps.runner | ||
androidTestImplementation deps.espresso.core | ||
|
||
//工具类 | ||
implementation 'com.github.xuexiangjys.XUtil:xutil-core:1.1.6' | ||
implementation 'com.github.xuexiangjys.XUtil:xutil-sub:1.1.6' | ||
//切片 | ||
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:1.0.5' //添加依赖 | ||
|
||
//XPage | ||
implementation 'com.github.xuexiangjys.XPage:xpage-lib:2.2.6' | ||
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:2.2.6' | ||
//ButterKnife的sdk | ||
implementation deps.butterknife.runtime | ||
annotationProcessor deps.butterknife.compiler | ||
//如果开启了内存泄漏监测leak,就需要加上这个依赖 | ||
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3' | ||
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3' | ||
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3' | ||
|
||
implementation project(path: ':xpush-core') | ||
implementation project(path: ':xpush-xg') | ||
|
||
//信鸽华为推送 | ||
implementation 'com.tencent.xinge:xghw:4.3.2-huawei-release' | ||
//信鸽小米推送 | ||
implementation 'com.tencent.xinge:mipush:4.3.2-xiaomi-release' | ||
//信鸽SDK | ||
implementation 'com.tencent.xinge:xinge:4.3.5-release' | ||
|
||
|
||
} |
Binary file not shown.
Oops, something went wrong.