4 Star 2 Fork 0

c0der/SkyPro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
settings.gradle 8.68 KB
一键复制 编辑 原始数据 按行查看 历史
luyuxiang 提交于 2016-12-21 10:02 . 修改setting.gradle
if (new File("project/project.gradle").exists())
apply from: "project/project.gradle"
def layoutlibJar() {
def android_home = System.getenv()['ANDROID_HOME']
if (android_home == null || android_home.equals(""))
return 'not found layoutlib.jar'
def compileSdkVersion = 'android-' + gradle.ext.api
def path = android_home + "/platforms/" + compileSdkVersion
def layoutlibPath = path + "/data/layoutlib.jar"
println("<CCBuild>layoutlibJar : " + layoutlibPath + '@' + compileSdkVersion)
return layoutlibPath
/*
def localProperties = new File(rootDir, "local.properties")
if (localProperties.exists()) {
Properties properties = new Properties()
localProperties.withInputStream {
instr -> properties.load(instr)
}
def sdkDir = properties.getProperty('sdk.dir')
def compileSdkVersion = 'android-' + gradle.ext.api
def path = sdkDir + "/platforms/" + compileSdkVersion
def layoutlibPath = path + "/data/layoutlib.jar"
println("<CCBuild>layoutlibJar : " + layoutlibPath + '@' + compileSdkVersion)
return layoutlibPath
}
println("<CCBuild>!!!!! check your local.properties")
return 'not found layoutlib.jar'
*/
}
def androidJar() {
def android_home = System.getenv()['ANDROID_HOME']
if (android_home == null || android_home.equals(""))
return 'not found android.jar'
def compileSdkVersion = 'android-' + gradle.ext.api
def path = android_home + "/platforms/" + compileSdkVersion
def androidPath = path + "/android.jar"
println("<CCBuild>androidJar : " + androidPath + '@' + compileSdkVersion)
return androidPath
/*
def localProperties = new File(rootDir, "local.properties")
if (localProperties.exists()) {
Properties properties = new Properties()
localProperties.withInputStream {
instr -> properties.load(instr)
}
def sdkDir = properties.getProperty('sdk.dir')
def compileSdkVersion = 'android-' + gradle.ext.api
def path = sdkDir + "/platforms/" + compileSdkVersion
def androidPath = path + "/android.jar"
println("<CCBuild>androidJar : " + androidPath + '@' + compileSdkVersion)
return androidPath
}
println("<CCBuild>!!!!! check your local.properties")
return 'not found android.jar'
*/
}
def init() {
println('<CCBuild>start build init')
gradle.ext.rootPath = new File("").getAbsolutePath()
gradle.ext.api = 23
gradle.ext.buildTools = "23.0.3"
gradle.ext.minSdkVersion = 15
gradle.ext.targetSdkVersion = 23
gradle.ext.layoutlibJar = layoutlibJar()
gradle.ext.androidJar = androidJar()
// framework路径
gradle.ext.ccSDKPath = "cc/sdk/"
gradle.ext.ccFrameworkPath = gradle.ext.ccSDKPath + "Framework/"
gradle.ext.ccSkyJavaLibrary = gradle.ext.ccFrameworkPath + "SkyJavaLibrary/"
gradle.ext.ccSkyAndroidLibrary = gradle.ext.ccFrameworkPath + "SkyAndroidLibrary/"
gradle.ext.ccExJavaLibPath = gradle.ext.ccFrameworkPath + "ExJavaLibrary/"
gradle.ext.project = "project/"
if (new File("project/project.gradle").exists()) {
projectInit()
} else {
println("project/project.gradle this file not exists")
}
gradle.ext.coocaaSign = gradle.ext.rootPath + File.separator + ".cc/platform.keystore"
}
init()
include ':ccSkySDK'
project(':ccSkySDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'SkySDK')
include ':ccDEServiceSDK'
project(':ccDEServiceSDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'DEServiceSDK')
//project(':FactoryPluginSDK').projectDir = new File(gradle.ext.SkyJavaLibrary + 'FactoryPluginSDK')
//project(':FactorySDK').projectDir = new File(gradle.ext.SkyJavaLibrary + 'FactorySDK')
//project(':LocalPlayerPluginSDK').projectDir = new File(gradle.ext.SkyJavaLibrary + 'LocalPlayerPluginSDK')
include ':ccPluginSDK'
project(':ccPluginSDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'PluginSDK')
include ':ccSkyWebSDK'
project(':ccSkyWebSDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'SkyWebSDK')
include ':ccSystemServiceSDK'
project(':ccSystemServiceSDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'SystemServiceSDK')
include ':ccTVSDK'
project(':ccTVSDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'TVSDK')
include ':ccUserServiceSDK'
project(':ccUserServiceSDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'UserServiceSDK')
//project(':VooleServiceSDK').projectDir = new File(gradle.ext.SkyJavaLibrary + 'VooleServiceSDK')
include ':ccWebSDK'
project(':ccWebSDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'WebSDK')
include ':ccSkyVideoPlayer'
include ':ccPlayerSDK-movie'
project(':ccSkyVideoPlayer').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'SkyVideoPlayer')
project(':ccPlayerSDK-movie').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'PlayerSDK-movie')
include ':ccSystemWebViewSDKExtra'
project(':ccSystemWebViewSDKExtra').projectDir = new File(gradle.ext.ccSkyJavaLibrary + "SystemWebViewSDKExtra/6.0")
include ':ccTCVideo'
project(':ccTCVideo').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'TCVideo')
include ':ccMovieWebSDK'
project(':ccMovieWebSDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'MovieWebSDK')
include ':ccMovieDataSDK'
project(':ccMovieDataSDK').projectDir = new File(gradle.ext.ccSkyJavaLibrary + 'MovieDataSDK')
include ':ccExAADSDK'
project(':ccExAADSDK').projectDir = new File(gradle.ext.ccSkyAndroidLibrary + "ADSDK/")
include ':ccExACommonUISDK'
project(':ccExACommonUISDK').projectDir = new File(gradle.ext.ccSkyAndroidLibrary + "CommonUISDK/")
include ':ccExAFrescoImageLoader'
project(':ccExAFrescoImageLoader').projectDir = new File(gradle.ext.ccSkyAndroidLibrary + "FrescoImageLoader/")
include ':ccExASystemWebViewSDK'
project(':ccExASystemWebViewSDK').projectDir = new File(gradle.ext.ccSkyAndroidLibrary + "SystemWebViewSDK/")
include ':ccExJCoocaaPay'
project(':ccExJCoocaaPay').projectDir = new File(gradle.ext.ccExJavaLibPath + "CoocaaPay/")
include ':ccExJFastJson'
project(':ccExJFastJson').projectDir = new File(gradle.ext.ccExJavaLibPath + "FastJson/")
include ':ccExJhome_glide'
project(':ccExJhome_glide').projectDir = new File(gradle.ext.ccExJavaLibPath + "home_glide/")
include ':ccExJHttpClient'
project(':ccExJHttpClient').projectDir = new File(gradle.ext.ccExJavaLibPath + "HttpClient/")
include ':ccExJImageloader'
project(':ccExJImageloader').projectDir = new File(gradle.ext.ccExJavaLibPath + "Imageloader/")
include ':ccExJjuniversalchardet'
project(':ccExJjuniversalchardet').projectDir = new File(gradle.ext.ccExJavaLibPath + "juniversalchardet/")
include ':ccExJNetroid'
project(':ccExJNetroid').projectDir = new File(gradle.ext.ccExJavaLibPath + "Netroid/")
include ':ccExJnineoldandroids'
project(':ccExJnineoldandroids').projectDir = new File(gradle.ext.ccExJavaLibPath + "nineoldandroids/")
include ':ccExJPicasso'
project(':ccExJPicasso').projectDir = new File(gradle.ext.ccExJavaLibPath + "Picasso/")
include ':ccExJPinyin4J'
project(':ccExJPinyin4J').projectDir = new File(gradle.ext.ccExJavaLibPath + "Pinyin4J")
include ':ccExJQQAccount'
project(':ccExJQQAccount').projectDir = new File(gradle.ext.ccExJavaLibPath + "QQAccount/")
include ':ccExJQRCode'
project(':ccExJQRCode').projectDir = new File(gradle.ext.ccExJavaLibPath + "QRCode/")
include ':ccExJRenderscript-v8'
project(':ccExJRenderscript-v8').projectDir = new File(gradle.ext.ccExJavaLibPath + "Renderscript-v8/")
include ':ccExJSetting'
project(':ccExJSetting').projectDir = new File(gradle.ext.ccExJavaLibPath + "Setting/")
include ':ccExJSkyworthDigital'
project(':ccExJSkyworthDigital').projectDir = new File(gradle.ext.ccExJavaLibPath + "SkyworthDigital/")
include ':ccExJSquareOtto'
project(':ccExJSquareOtto').projectDir = new File(gradle.ext.ccExJavaLibPath + "SquareOtto/")
include ':ccExJVoice'
project(':ccExJVoice').projectDir = new File(gradle.ext.ccExJavaLibPath + "Voice/")
include ':ccExJWebSDKHttpJar'
project(':ccExJWebSDKHttpJar').projectDir = new File(gradle.ext.ccExJavaLibPath + 'WebSDKHttpJar')
include ':ccExJxUtils'
project(':ccExJxUtils').projectDir = new File(gradle.ext.ccExJavaLibPath + 'xUtils')
include ':ccExJwebpAnimateJar'
project(':ccExJwebpAnimateJar').projectDir = new File(gradle.ext.ccExJavaLibPath + 'webpAnimateJar')
include ':ccExJVolley'
project(':ccExJVolley').projectDir = new File(gradle.ext.ccExJavaLibPath + 'Volley')
include ':ccExJSkyThemeSDK'
project(':ccExJSkyThemeSDK').projectDir = new File(gradle.ext.ccExJavaLibPath + 'SkyThemeSDK')
include ':ccExASkyAppUISDK'
project(':ccExASkyAppUISDK').projectDir = new File(gradle.ext.ccSDKPath + "SkyAppUISDK/")
include ':ccExASkyUpgradeSDK'
project(':ccExASkyUpgradeSDK').projectDir = new File(gradle.ext.ccSDKPath + "SkyUpgradeSDK/")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Groovy
1
https://gitee.com/c0der/SkyPro.git
git@gitee.com:c0der/SkyPro.git
c0der
SkyPro
SkyPro
master

搜索帮助