Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Documentation for 2.0.0-M5 release not yet deployed? #85

Open
ThijsBroersen opened this issue Apr 20, 2016 · 4 comments
Open

Documentation for 2.0.0-M5 release not yet deployed? #85

ThijsBroersen opened this issue Apr 20, 2016 · 4 comments

Comments

@ThijsBroersen
Copy link

This week I started using Macroid and reading through the documentation. While using it yesterday I suddenly the 2.0.0-M4 release was not available anymore ... After browsing the repositories I noticed it did not exist anymore but instead there is a M5 release which has some breaking changes. After browsing through the documentation of the M5 release branch I have seen the documentation is already up-to-date but http://macroid.github.io/ does not yet contain the new documentation.
When will http://macroid.github.io/ be updated with the M5 documentation?

@javipacheco
Copy link
Collaborator

Hi @ThijsBroersen

The 2.0.0-M4 version is still in JCenter. This version was released one year ago and the master branch has been updated during this time. We are working in #84 in order to release 2.0.0-M5 version with the latest changes

We are going to update the documentation ASAP but my recommendation is upgrade to 2.0.0-M5 because it's the last version. This version is already available in Maven Central (Sonatype)

Some changes that you should do in your code:

Use:

myUi.run
myUi.get

instead of

runUi(myUi)
getUi(myUi)

And now Tweaking, Snailing and Excerpting traits are in package.scala and you should use import macroid._ instead of import macroid.FullDSL._

If you have some specific problem in your migration, please, let me know!

Thanks!

@mauricioguell
Copy link

Hi @javipacheco!

I'm trying to migrate to 2.0.0-M5 version but I'm having several problems.
Can you help me with this 2.0.0-M4 example of my code? It will be really helpful.

override def onCreate(savedInstanceState: Bundle): Unit = {
  super.onCreate(savedInstanceState)
  setContentView {
    getUi {
      layout[LinearLayout](
        fragment[StartFragment].framed(Id.map, Tag.tag)
      ) <~ vertical
    }
  }
}

Thanks!

@javipacheco
Copy link
Collaborator

javipacheco commented Jun 8, 2016

Try this:

override def onCreate(savedInstanceState: Bundle): Unit = {
  super.onCreate(savedInstanceState)
  setContentView {
   (layout[LinearLayout](
        fragment[StartFragment].framed(Id.map, Tag.tag)
      ) <~ vertical).get
  }
}

You should use yourUi.get instead of getUi(yuorUi) and yourUi.run instead of runUi(yourUi)

@mauricioguell
Copy link

Fantastic, worked for me, thanks @javipacheco !!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants