Giter VIP home page Giter VIP logo

Comments (5)

ronniesun avatar ronniesun commented on May 5, 2024

PS: i feel the problem in "com.github.hierynomus.license" , please help me

from weex.

xkli avatar xkli commented on May 5, 2024

@ronniesun "com.github.hierynomus.license" is a plugin for formatting code, you can use the proxy, or remove it, just like the following code:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0'
    }
}

//plugins {
//    id "com.github.hierynomus.license" version "0.12.1"
//}

allprojects {
    repositories {
        jcenter()
    }
}

apply plugin: 'com.android.library'


version = "0.0.0.1"

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"
    resourcePrefix "weex"

//    def libsDir = projectDir.path + "/src/main/jni/"
    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
        ndk {
//            moduleName "weexcore"
//            cFlags "-I" + file(libsDir+"v8core").absolutePath
//            ldLibs "log",libsDir + "libv8_base.a",libsDir + "libv8_snapshot.a"
            abiFilters "armeabi"
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    sourceSets {
        main {
            assets.srcDirs = ['assets']
            jniLibs.srcDir(['libs'])
        }
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }

    compileOptions.encoding = "UTF-8"
    lintOptions {
        abortOnError false
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    provided 'com.android.support:recyclerview-v7:23.1.1'
    provided 'com.android.support:support-v4:23.1.1'
    provided 'com.android.support:appcompat-v7:23.1.1'
    provided 'com.alibaba:fastjson:1.1.45'

    testCompile 'junit:junit:4.12'
    testCompile 'org.hamcrest:hamcrest-core:1.3'
    testCompile 'org.javassist:javassist:3.20.0-GA'
    testCompile 'org.mockito:mockito-core:1.10.19'
    testCompile 'org.objenesis:objenesis:2.1'
    testCompile 'org.powermock:powermock-core:1.6.4'
    testCompile 'org.powermock:powermock-api-mockito:1.6.4'
    testCompile 'org.powermock:powermock-module-junit4-common:1.6.4'
    testCompile 'org.powermock:powermock-module-junit4:1.6.4'
    testCompile 'org.powermock:powermock-module-junit4-legacy:1.6.4'
    testCompile 'org.powermock:powermock-module-testng:1.6.4'
    testCompile 'org.robolectric:robolectric:3.0-rc3'
}

//license{
//    header=file('LICENSE')
//    excludes (["**/WXDataStructureUtil.java",
//               "**/WXBackgroundDrawable.java",
//               "**/Spacing.java",
//               "**/MeasureOutput.java",
//               "**/LayoutEngine.java",
//               "**/FloatUtil.java",
//               "**/CSSWrap.java",
//               "**/CSSStyle.java",
//               "**/CSSPositionType.java",
//               "**/CSSNode.java",
//               "**/CSSLayoutContext.java",
//               "**/CSSLayout.java",
//               "**/CSSJustify.java",
//               "**/CSSFlexDirection.java",
//               "**/CSSDirection.java",
//               "**/CSSConstants.java",
//               "**/CSSAlign.java",
//               "**/CachedCSSLayout.java",
//               "**/CSSAlignConvert.java",
//               "**/CSSFlexDirectionConvert.java",
//               "**/CSSJustifyConvert.java",
//               "**/CSSPositionTypeConvert.java",
//               "**/CSSTransformFromStyle.java",
//               "**/CSSWrapConvert.java",
//               "**/WXTextDomObject.java"])
////    includes(['src/main/java/**/*.java'])
//}
//preBuild.dependsOn licenseFormat

task wrapper(type: Wrapper) {
    gradleVersion = '2.10'
}

from weex.

ronniesun avatar ronniesun commented on May 5, 2024

@xkli can you give a proxy? email

from weex.

xkli avatar xkli commented on May 5, 2024

Sorry, I don't have proxy, I recommend you remove this plugin.

from weex.

ronniesun avatar ronniesun commented on May 5, 2024

@xkli I recommend weex remove this plugin in master.

from weex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.