Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
John-He-928 committed Nov 12, 2018
1 parent 1adbb1d commit 336d399
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
14 changes: 4 additions & 10 deletions android/gradle/WeChatPublish.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@

buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}

def extensionClass

// Detect supported plugin modules
Expand Down Expand Up @@ -154,7 +147,7 @@ class WeChatPublishExtension {

if (publishToBintray) {
if (!project.plugins.hasPlugin('com.jfrog.bintray')) {
project.plugins.apply('com.jfrog.bintray')
project.apply plugin: 'com.jfrog.bintray'
}

if (!project.hasProperty('BINTRAY_USER') ||
Expand All @@ -165,6 +158,7 @@ class WeChatPublishExtension {
def bintrayKey = project.property('BINTRAY_APIKEY')

// Emit bintray DSL
def configureClosures = bintrayConfigureClosures
project.bintray {
user = bintrayUser
key = bintrayKey
Expand All @@ -185,7 +179,7 @@ class WeChatPublishExtension {
released = new Date()
}

bintrayConfigureClosures.each {
configureClosures.each {
it.delegate = delegate
it()
}
Expand Down Expand Up @@ -427,7 +421,7 @@ class WeChatAndroidLibraryPublishExtension extends WeChatPublishExtension {
def nativeSymbolZipTask = null
if (externalNativeBuildTask != null) {
nativeSymbolZipTask = project.task("nativeSymbolZip${cVariantName}", type: Zip) {
classifier = 'symbols'
classifier = "${variantName}Symbols"
from externalNativeBuildTask.objFolder
include '**/*.so'
dependsOn externalNativeBuildTask
Expand Down

0 comments on commit 336d399

Please sign in to comment.