XCalcAndroid

An Android xcalc arithmetic expressions processor

License

License

GroupId

GroupId

com.github.st235
ArtifactId

ArtifactId

xcalc-android-wrapper
Last Version

Last Version

0.0.5
Release Date

Release Date

Type

Type

aar
Description

Description

XCalcAndroid
An Android xcalc arithmetic expressions processor
Project URL

Project URL

https://github.com/st235/xcalc-android-wrapper
Source Code Management

Source Code Management

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

Download xcalc-android-wrapper

How to add to project

<!-- 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"]

Dependencies

compile (4)

Group / Artifact Type Version
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

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.0.5