Skip to content

Commit

Permalink
Update Gradle build files.
Browse files Browse the repository at this point in the history
  • Loading branch information
airxnoor committed May 8, 2024
1 parent e059fd7 commit eda1d3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
15 changes: 5 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

val autoVersion = project.property(
if (project.hasProperty("AUTO_VERSION")) {
"AUTO_VERSION"
} else {
"LIBRARY_VERSION"
},
) as String
private val version = (properties["AUTO_VERSION"] ?: properties["LIBRARY_VERSION"])?.toString()
?: error("Fatal error: unable to determine the library version.")

rootProject.group = "${properties["GROUP"]}"
rootProject.version = autoVersion
private val iosFrameworkName = "KmpLog"

val iosFrameworkName = "${properties["IOS_FRAMEWORK_NAME"]}"
rootProject.group = "${properties["GROUP"]}"
rootProject.version = version

buildscript {
repositories {
Expand Down
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# Versioning:
GROUP=com.airthings.lib
LIBRARY_VERSION=0.2.7
IOS_FRAMEWORK_NAME=KmpLog

# Gradle/KMP options:
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
Expand Down Expand Up @@ -50,7 +49,7 @@ version.plugin.outdated=0.49.0
version.plugin.kmmbridge=0.5.5

# Dependencies:
version.kotlin=1.9.22
version.kotlin=1.9.23
version.kotlin.coroutines=1.7.3
version.kotlin.datetime=0.4.1
version.stately.concurrency=1.2.3

0 comments on commit eda1d3d

Please sign in to comment.