Coder Social home page Coder Social logo

Comments (8)

bartekpacia avatar bartekpacia commented on June 16, 2024 1

For now - yes.

from flutter.

bartekpacia avatar bartekpacia commented on June 16, 2024 1

I suspect it means Working As Intended.

I'd like to understand will declarative style be supported by modules later?

It will be when someone contributes it.

from flutter.

darshankawar avatar darshankawar commented on June 16, 2024

After Migrating flutter module to use declarative plugin style.

@sahilsmartq Can you provide the same files details before migrating ?

You can also try to create a new flutter app and then compare the respective files with the one you migrated in, to compare if anything is missing or need to be updated in your current setup.

from flutter.

bartekpacia avatar bartekpacia commented on June 16, 2024

These instructions do not work for add-to-app projects.

from flutter.

sahilsmartq avatar sahilsmartq commented on June 16, 2024

@darshankawar

This was the file before migration. It is working in flutter app but once we add it to existing app it is not letting me to run the android or iOS build.

settings.gradle

include ':app'
include ':GraphyView'

build gradle (project)

buildscript {
ext.kotlin_version = '1.7.21'
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.google.gms:google-services:4.3.14'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
mavenCentral()
google()
}
}

build.gradle (app)

plugins {
id 'com.google.secrets_gradle_plugin' version '0.6'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'kotlin-kapt'

android {
bundle {
language {
enableSplit = false
}
}
packagingOptions {
resources {
excludes += ['META-INF/DEPENDENCIES', 'META-INF/INDEX.LIST', '/META-INF/{AL2.0,LGPL2.1}']
}
}

signingConfigs {
 .....
}

flavorDimensions = ["default"]
compileSdk 34
useLibrary 'org.apache.http.legacy'
defaultConfig {
    applicationId 'com.workable.graphy'
    minSdkVersion 22
    targetSdkVersion 33
    versionCode 3
    versionName '1.0'
    multiDexEnabled true
    vectorDrawables.useSupportLibrary = true
}
buildTypes {
   .....
}

productFlavors {
    ...
}

buildFeatures {
    dataBinding true
}

compileOptions {
    sourceCompatibility = '1.8'
    targetCompatibility = '1.8'
}
kotlinOptions {
    jvmTarget = "1.8"
}
lint {
    checkReleaseBuilds false
}
namespace 'com.workable.graphy'

}

dependencies {
implementation project(":GraphyView")

implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation project(':flutter')

.....

}

repositories {
mavenCentral()
}

from flutter.

sahilsmartq avatar sahilsmartq commented on June 16, 2024

These instructions do not work for add-to-app projects.

Then For addToApp do we need to follow older imperative style only?

from flutter.

darshankawar avatar darshankawar commented on June 16, 2024

Closing as this is not an issue, but WAI.

from flutter.

alexabalmasov avatar alexabalmasov commented on June 16, 2024

@darshankawar Hi, sorry for a stupid question, but what does WAI mean?) I have the similar problem and I can't add flutter module to my native android project, because my native app doesn't support imperative style modules. I'd like to understand will declarative style be supported by modules later?

from flutter.

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.