• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

openbakery/gradle-xcodePlugin: gradle plugin for building Xcode Projects for iOS ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

openbakery/gradle-xcodePlugin

开源软件地址(OpenSource Url):

https://github.com/openbakery/gradle-xcodePlugin

开源编程语言(OpenSource Language):

Groovy 96.3%

开源软件介绍(OpenSource Introduction):

gradle-xcodePlugin

The gradle xcode plugin (gxp) makes it easier to build Xcode projects by specifying the build settings in a single configuration file. The goal is to keep the build file as simple as possible, but also enable a great flexibility for the build.

The gxp uses the Apple command line tools (like xcodebuild) to perform the build.

Here a brief overview of the features:

  • Build iOS, watchOS, tvOS and Mac projects
  • Override sign settings for builds
  • Perform unit tests
  • Support for multiple Xcodes (on one machine)
  • Cocoapods support
  • Carthage support
  • Appledoc support
  • Code coverage support (using gcovr or using CoverageReport )
  • OCLint

Requirements

Xcode 12 or greater

  • Gradle 2.14 or greater
  • Java 1.6 or greater

Current stable version is 0.22.2

Parameters Documentation

Usage

Create a build.gradle file and place it in the same directory where xcodeproj file lies.

Here the minimal content you need in your build.gradle file:

buildscript {
  repositories {
    maven {
      url('https://openbakery.org/repository/')
    }
  mavenCentral()
  }

  dependencies {
    classpath "org.openbakery:xcode-plugin:0.22.+"
  }
}

apply plugin: "org.openbakery.xcode-plugin"

Current develop version

When using the openbakery.org repository you can also get the latest develop version by including develop into the version pattern. e.g.:

classpath "org.openbakery:xcode-plugin:0.22.2.develop.+"

The develop version contains all the changes from the develop branch, where all the fixes and feature are implemented. The development version is deployed automatically when all the projects unit tests are successful, and also the if the example projects build.

Example

You find example projects in example/ with a working build.gradle file. After you have fetched the example go to the example/iOS/Example directory and you build the project different targets:

  • Build with gradle xcodebuild
  • Run the unit tests with gradle test
  • Perform a device build and upload it to App Center with gradle integration. Here you need to specify your sign settings first (see Signing ). Open the build.gradle file an follow the instructions.
  • Perform an appstore build with gradle appstore. (Also the sign settings are needed).

Need help?

If you need help you can create an issue here on GitHub, you can send me a mail or ask on twitter.

Collaborate

I'm always happy to receive pull requests with new features and if you send a pull request please consider the following things:

  • Use the develop branch for pull requests, because all the new stuff is implemented in the develop branch and also pull requests are always merge into develop
  • Use Tabs instead of spaces.
  • Make sure that all unit tests are working before you send the pull request. Just run 'gradle test'
  • I urge you to write unit tests.
  • For unit test please use the spock framework for mocking. I want to remove the old gmock framework and port the old tests to use spock.
  • Pull requests that contains new features or fixes but without any unit tests will NOT be merged.

License

This project is licensed under the terms of the Apache license. See the LICENSE file.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap