Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report something can't do #12

Open
ynntk4815 opened this issue Nov 22, 2019 · 1 comment
Open

report something can't do #12

ynntk4815 opened this issue Nov 22, 2019 · 1 comment

Comments

@ynntk4815
Copy link

before
flavorDimensions "env", "moduleEnv"
after
flavorDimensions("env", "moduleEnv")

before

productFlavors {
    dev {
        dimension "env"
        resValue "string", "app_name", "Test App DEV"
        buildConfigField "boolean", "IS_DEBUG", "true"
    }
    pub {
        dimension "env"
        buildConfigField "boolean", "IS_DEBUG", "false"
    }
    moduleDev {
        dimension "moduleEnv"
    }
    modulePub {
        dimension "moduleEnv"
    }
}

after

productFlavors {
    create ("dev") {
        setDimension("env")
        resValue("string", "app_name", "Test App DEV")
        buildConfigField("boolean", "IS_DEBUG", "true")
    }
    create ("pub") {
        setDimension("env")
        buildConfigField("boolean", "IS_DEBUG", "false")
    }
    create ("moduleDev") {
        setDimension("moduleEnv")
    }
    create ("modulePub") {
        setDimension("moduleEnv")
    }
}

before
useLibrary "org.apache.http.legacy"
after
useLibrary("org.apache.http.legacy")

before

testOptions {
    unitTests {
        includeAndroidResources = true
    }
}

after

testOptions {
    unitTests.isIncludeAndroidResources = true
}

before

sourceSets {
    main.java.srcDirs += "src/main/kotlin"
}

after

sourceSets.getByName("main") {
    java.srcDir("src/main/kotlin")
}
@pavi2410
Copy link
Contributor

pavi2410 commented Nov 29, 2019

Some conversions you ask for can't be done with just regex. For that we need a Groovy parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants