alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
815 stars 434 forks source link

update buildToolsVersion #181

Open jacintoface opened 5 years ago

jacintoface commented 5 years ago

Can you change several parameters such as buildToolsVersion to read from the configuration file of the project root directory? Now I have encountered a problem with the buildToolsVersion version conflict.

Like this function in build.gradle: def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback }

usage: compileSdkVersion safeExtGet('compileSdkVersion', 26) buildToolsVersion safeExtGet('buildToolsVersion', '26.0.2')