Update template file
This commit is contained in:
parent
dc3c06c81e
commit
e900b35281
@ -1,7 +1,7 @@
|
||||
import groovy.json.JsonSlurper
|
||||
|
||||
def model = new JsonSlurper().parse(new File(project.getProjectDir().parent + File.separator + "package.json"))
|
||||
def doricSDKVersion = model.dependencies.doric.replace("^", "").replace(">=","")
|
||||
def doricSDKVersion = model.peerDependencies.doric.replace("^", "").replace(">=","")
|
||||
|
||||
println("Doric Version:" + doricSDKVersion)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import groovy.json.JsonSlurper
|
||||
|
||||
def model = new JsonSlurper().parse(new File(project.rootDir.parentFile.parent + File.separator + "package.json"))
|
||||
def doricSDKVersion = model.dependencies.doric.replace("^", "").replace(">=","")
|
||||
def doricSDKVersion = model.peerDependencies.doric.replace("^", "").replace(">=","")
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
require "json"
|
||||
|
||||
package = JSON.parse(File.read(File.join(__dir__, "../../package.json")))
|
||||
version = package['dependencies']["doric"]
|
||||
version = package['peerDependencies']["doric"]
|
||||
version = version.gsub('^','').gsub('>=','')
|
||||
|
||||
source 'https://cdn.cocoapods.org/'
|
||||
|
Reference in New Issue
Block a user