XCalcAndroid

An Android xcalc arithmetic expressions processor

Лицензия

Лицензия

Группа

Группа

com.github.st235
Идентификатор

Идентификатор

xcalc-android-wrapper
Последняя версия

Последняя версия

0.0.5
Дата

Дата

Тип

Тип

aar
Описание

Описание

XCalcAndroid
An Android xcalc arithmetic expressions processor
Ссылка на сайт

Ссылка на сайт

https://github.com/st235/xcalc-android-wrapper
Система контроля версий

Система контроля версий

https://github.com/st235/xcalc-android-wrapper.git

Скачать xcalc-android-wrapper

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.st235/xcalc-android-wrapper/ -->
<dependency>
    <groupId>com.github.st235</groupId>
    <artifactId>xcalc-android-wrapper</artifactId>
    <version>0.0.5</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.st235/xcalc-android-wrapper/
implementation 'com.github.st235:xcalc-android-wrapper:0.0.5'
// https://jarcasting.com/artifacts/com.github.st235/xcalc-android-wrapper/
implementation ("com.github.st235:xcalc-android-wrapper:0.0.5")
'com.github.st235:xcalc-android-wrapper:aar:0.0.5'
<dependency org="com.github.st235" name="xcalc-android-wrapper" rev="0.0.5">
  <artifact name="xcalc-android-wrapper" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.st235', module='xcalc-android-wrapper', version='0.0.5')
)
libraryDependencies += "com.github.st235" % "xcalc-android-wrapper" % "0.0.5"
[com.github.st235/xcalc-android-wrapper "0.0.5"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-android-extensions-runtime jar 1.4.10
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.10
androidx.core » core-ktx jar 1.3.1
androidx.appcompat » appcompat jar 1.2.0

Модули Проекта

Данный проект не имеет модулей.

XCalc Android Wrapper

Maven Central

Android wrapper written in Kotlin for xcalc arithmetic expressions processor

Download

Important: library was migrated from JCenter to MavenCentral

It means that it may be necessary to add mavenCentral repository to your repositories list

allprojects {
    repositories {
        // your repositories

        mavenCentral()
    }
}
  • Maven
<dependency>
  <groupId>com.github.st235</groupId>
  <artifactId>xcalc-android-wrapper</artifactId>
  <version>X.X</version>
  <type>pom</type>
</dependency>
  • Gradle
implementation 'com.github.st235:xcalc-android-wrapper:X.X'
  • Ivy
<dependency org='com.github.st235' name='xcalc-android-wrapper' rev='X.X'>
  <artifact name='xcalc-android-wrapper' ext='pom' ></artifact>
</dependency>

P.S.: Check out latest version code in badge at the top of this page.

Usage

        val calc = XCalc(angleUnits = AngleUnits.DEG)
        val result = calc.evaluate("expression goes here")
        
        if (result.calculationStatus == CalculationStatus.OK) {
            Log.d("XCalc", result.output)
        } else {
            Log.e("XCalc", result.calculationStatus.name)
        }

Screen

License

MIT License

Copyright (c) 2020 Alexander Dadukin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Версии библиотеки

Версия
0.0.5