Coder Social home page Coder Social logo

Comments (7)

maxkomarychev avatar maxkomarychev commented on May 28, 2024 1

@to-dy I have published new version 3.1.5 which should fix this problem. Please feel free to reopen if issue occurs again.

thanks for feedback.

from react-native-ultimate-config.

maxkomarychev avatar maxkomarychev commented on May 28, 2024

@to-dy hi, can you please share more information on how exactly do you do build in appcenter? what command do you use? from which folder do you run it?

thanks.

from react-native-ultimate-config.

to-dy avatar to-dy commented on May 28, 2024

@maxkomarychev
it's a Gradle task
command can be found below

[command]/Users/runner/runners/2.171.1/work/1/s/android/gradlew -DAPPCENTER_KEYSTORE_PASSWORD=*** -DMOBILECENTER_KEYSTORE_PASSWORD=*** -DAPPCENTER_KEY_ALIAS=*** -DMOBILECENTER_KEY_ALIAS=*** -DAPPCENTER_KEY_PASSWORD=*** -DMOBILECENTER_KEY_PASSWORD=*** -DAPPCENTER_BUILD_VERSION=184 -DMOBILECENTER_BUILD_VERSION=184 -p android clean :app:assembleDevRelease :app:bundleDevRelease
Downloading https://services.gradle.org/distributions/gradle-6.1.1-all.zip
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /Users/runner/.gradle/wrapper/dists/gradle-6.1.1-all/cfmwm155h49vnt3hynmlrsdst/gradle-6.1.1-all.zip to /Users/runner/.gradle/wrapper/dists/gradle-6.1.1-all/cfmwm155h49vnt3hynmlrsdst
Set executable permissions for: /Users/runner/.gradle/wrapper/dists/gradle-6.1.1-all/cfmwm155h49vnt3hynmlrsdst/gradle-6.1.1/bin/gradle

Welcome to Gradle 6.1.1!

Here are the highlights of this release:
 - Reusable dependency cache
 - Configurable compilation order between Groovy/Kotlin/Java/Scala
 - New sample projects in Gradle's documentation

For more details see https://docs.gradle.org/6.1.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)
Gradle 6.1.1

> Configure project :
Resolved com.android.tools.build:gradle:4.0.0 in :classpath 
Resolved com.google.gms:google-services:4.3.3 in :classpath 
Project myCareAI at : is either no Android app project or build version has not been set to override. Skipping...

> Configure project :app
Resolved org.yaml:snakeyaml:1.19 in classpath 
Flavor mapping detected: [dev:../.env.yaml, staging:../.env.staging.yaml]

FAILURE: Build failed with an exception.

* Where:
Script '/Users/runner/runners/2.171.1/work/1/s/node_modules/react-native-ultimate-config/android/rnuc.gradle' line: 17

* What went wrong:
A problem occurred evaluating script.
> /Users/runner/runners/2.171.1/work/1/s/../.env.yaml (No such file or directory)

from react-native-ultimate-config.

maxkomarychev avatar maxkomarychev commented on May 28, 2024

would it be possible to see full piece of config relevant for this command? or any chance you are specifying custom cwd parameter there?

it looks like relative path is computed against root of the project instead of android folder.
I don't have experience with appcenter so for now I can only speculate.

could you try changing your config to be

project.ext.flavorEnvMapping = [
    dev: ".env.yaml",
    staging: ".env.staging.yaml"
]

it might break the local build but I am wondering if this will do the trick for appcenter

meanwhile I'll try to think of more robust way of specifying path to config file.

from react-native-ultimate-config.

maxkomarychev avatar maxkomarychev commented on May 28, 2024

ok I found the problem. gradle process is launched from root of the repository while existing code expects current working directory to be "android" folder. I am sure there is a simple fix to this issue.

from react-native-ultimate-config.

to-dy avatar to-dy commented on May 28, 2024

@maxkomarychev thanks for your time on this. 🙏🏾

from react-native-ultimate-config.

maxkomarychev avatar maxkomarychev commented on May 28, 2024

@to-dy I have potential fix in branch "android-relative-paths" (pr #28). I'll merge and publish it as soon as e2e is ok, you can meanwhile try installing it directly from the branch to give it a try.

thanks

from react-native-ultimate-config.

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.