flexn-io / create

Build apps for web, TVs, desktops, consoles, wearables and more. Developer friendly UI library targeting all form factors platforms. Another notable feature is providing focus management for TVs which very easy to implement using Create.
https://create.flexn.org
MIT License
26 stars 6 forks source link

Altering build.gradle #143

Closed saimirg closed 11 months ago

saimirg commented 1 year ago

Hi, i'm following below instructions on how to modify final build.gradle file by adding parameters on renative.json, but cant seem to make it work. Can you show me an example file on how to add them ?

image
mihaiblaga89 commented 1 year ago

@saimirg what exactly are you trying to add?

saimirg commented 1 year ago

I wanted to include google crashlytics. The default renative plugin is generating many errors, while using the crashlytics configuration from android studio works just fine. After configuration, android studio is adding the folling lines on gradle.

build.gradle (project-level)

    Add rules to include the Google Services Gradle plugin:
        classpath 'com.google.gms:google-services:4.3.10'
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'

app/build.gradle

    Apply the Google Services Gradle plugin:
        apply plugin: 'com.google.gms.google-services'
        apply plugin: 'com.google.firebase.crashlytics'

    Add the library dependencies:
        implementation 'com.google.firebase:firebase-crashlytics:18.2.9'
        implementation 'com.google.firebase:firebase-analytics:20.1.2'
mihaiblaga89 commented 1 year ago

The plugin should work, if you're getting errors maybe post them here to try to solve them. Otherwise you can have a look at how crashlytics is implemented in the plugins themselves. https://github.com/flexn-io/commonwealth/blob/main/packages/plugins/pluginTemplates/renative.plugins.json

pauliusguzas commented 12 months ago

@saimirg is this solved?