Gluon 4.x.x工件不在Nexus回购中?

时间:2017-01-07 08:13:49

标签: java gluon gluon-mobile gluon-desktop

将我的项目升级到Gluon Charm 4.3.0涉及更新build.gradle中的依赖项。根据文档,我需要升级所有4个魅力依赖项;基地和三个平台相关的。 http://docs.gluonhq.com/charm/4.3.0/#_adding_gluon_mobile_to_an_existing_project

当我尝试编译时,我得到一个“无法解决所有依赖关系”,事实上,如果我看一下文档中提到的Nexus repo,我确实看到4.3.0为基础,但所有平台基础工件只能高达3. http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/ http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-android/

回购已经移动了吗?

1 个答案:

答案 0 :(得分:1)

你是对的一件事:魅力4+平台依赖不存在。

问题是您链接的文档中的错误,因为第2.5.8节不再有效:如果您继续阅读第8章(migration guide),您会看到:

  

Gluon Mobile 4只需要一个依赖声明,而不是之前需要的四个声明。这将包括对Charm Glisten和Gluon Connect的依赖。

所以你现在需要的是这个单一的Charm依赖:

jfxmobile {
    downConfig {
        version '3.2.0'
        plugins 'display', 'lifecycle', 'statusbar', 'storage'
    }
    android { ... }
}

和此:

build.gradle

所需的Charm Down插件。

另请查看Charm Down中的code changes

如果使用Gluon IDE插件创建新项目,您将看到新func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return validDeck.count // assuming count must be greater then 0 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell:UITableViewCell = tableView.dequeueReusableCellWithIdentifier("cell") as! UITableViewCell cell.textlabel?.text = "Cell tittle" return cell } 文件的外观。