| | |
| | | } |
| | | |
| | | task deleteSdk() { |
| | | delete "${outPutPath}\\${CHANNEL_NAME}" |
| | | delete "${outPutPath}\\${CHANNEL_NAME}\\debug" |
| | | delete "${outPutPath}\\${CHANNEL_NAME}\\release" |
| | | } |
| | | |
| | | //执行打包任务以及拷贝到外部 |
| | |
| | | } |
| | | plugins.each { |
| | | deps = file("${rootPath}/plugins/${it}/deps.gradle") |
| | | deps.eachLine { line -> |
| | | if (line != null) |
| | | content += line + "\n" |
| | | if(deps.exists()){ |
| | | deps.eachLine { line -> |
| | | if (line != null) |
| | | content += line + "\n" |
| | | } |
| | | } |
| | | } |
| | | def dir = new File("${outPutPath}\\${CHANNEL_NAME}") |
| | | def libraries = new File("${outPutPath}\\${CHANNEL_NAME}\\deps.gradle") |
| | | dir.mkdir() |
| | | if (libraries.exists()) |
| | | libraries.delete() |
| | | if (!libraries.exists()) |
| | | libraries.createNewFile() |
| | | libraries.text = content |
| | |
| | | |
| | | dependencies { |
| | | implementation 'com.android.support:support-annotations:28.0.0' |
| | | testImplementation 'junit:junit:4.13.1' |
| | | testImplementation 'junit:junit:4.13.2' |
| | | |
| | | //noinspection GradleCompatible |
| | | implementation 'com.android.support:appcompat-v7:28.0.0' |
| | | // implementation 'com.android.support:appcompat-v7:28.0.0' |
| | | |
| | | // implementation 'com.github.pqpo:Log4a:1.4.2@aar' |
| | | |
| | | implementation fileTree(dir: "../channel/${CHANNEL_NAME}/libs/", include: ['*.jar']) |
| | | plugins.each { |
| | | implementation fileTree(dir: "${rootPath}/plugins/${it}/libs/", include: ['*.jar']) |
| | | } |
| | | implementation fileTree(dir: 'libs', include: ['*.jar'], exclude: ['unity-classes.jar']) |
| | | compileOnly files('libs/unity-classes.jar') |
| | | } |