Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Now I download the latest version, but gradle's buildToolsVersion is still fixed at 25.0.2. Can it be new? #129

Open
jacintoface opened this issue Dec 28, 2018 · 2 comments

Comments

@jacintoface
Copy link

problem like title, thanks

@ethanyuwang
Copy link

Great question. This outdated dependency actually caused me a problem when I tried to compile a release build with react-native: 0.58.4. I copied off a build.gradle from another project that would use the parent project's dependencies if available:

def safeExtGet(prop, fallback) {
    rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'
    }
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion safeExtGet('compileSdkVersion', 26)
    buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')

    defaultConfig {
        minSdkVersion safeExtGet('minSdkVersion', 16)
        targetSdkVersion safeExtGet('targetSdkVersion', 22)
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}

repositories {
    mavenCentral()
}

dependencies {
    compile 'com.facebook.react:react-native:+'
}

@safaiyeh
Copy link

safaiyeh commented Jan 2, 2020

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store
We can create issues and PRs there to continue the development of the project.

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

No branches or pull requests

3 participants