Skip to content

Commit c8e9fd4

Browse files
committed
ported to Swift by using JavApi⁴Swift
1 parent 8d92bf1 commit c8e9fd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1374
-1480
lines changed

.gitignore

Lines changed: 4 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,5 @@
1-
# Created by .ignore support plugin (hsz.mobi)
2-
### Java template
3-
# Compiled class file
4-
*.class
1+
# Swift
2+
.build
3+
.swiftpm
4+
Package.resolved
55

6-
# Log file
7-
*.log
8-
9-
# BlueJ files
10-
*.ctxt
11-
12-
# Mobile Tools for Java (J2ME)
13-
.mtj.tmp/
14-
15-
# Package Files #
16-
*.jar
17-
*.war
18-
*.ear
19-
*.zip
20-
*.tar.gz
21-
*.rar
22-
23-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
24-
hs_err_pid*
25-
### JetBrains template
26-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
27-
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
28-
29-
# User-specific stuff:
30-
.idea/**/workspace.xml
31-
.idea/**/tasks.xml
32-
.idea/dictionaries
33-
34-
# Sensitive or high-churn files:
35-
.idea/**/dataSources/
36-
.idea/**/dataSources.ids
37-
.idea/**/dataSources.xml
38-
.idea/**/dataSources.local.xml
39-
.idea/**/sqlDataSources.xml
40-
.idea/**/dynamic.xml
41-
.idea/**/uiDesigner.xml
42-
43-
# Gradle:
44-
.idea/**/gradle.xml
45-
.idea/**/libraries
46-
47-
# Mongo Explorer plugin:
48-
.idea/**/mongoSettings.xml
49-
50-
## File-based project format:
51-
*.iws
52-
53-
## Plugin-specific files:
54-
55-
# IntelliJ
56-
/out/
57-
58-
# mpeltonen/sbt-idea plugin
59-
.idea_modules/
60-
61-
# JIRA plugin
62-
atlassian-ide-plugin.xml
63-
64-
# Crashlytics plugin (for Android Studio and IntelliJ)
65-
com_crashlytics_export_strings.xml
66-
crashlytics.properties
67-
crashlytics-build.properties
68-
fabric.properties
69-
### Maven template
70-
target/
71-
pom.xml.tag
72-
pom.xml.releaseBackup
73-
pom.xml.versionsBackup
74-
pom.xml.next
75-
release.properties
76-
dependency-reduced-pom.xml
77-
buildNumber.properties
78-
.mvn/timing.properties
79-
80-
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
81-
!/.mvn/wrapper/maven-wrapper.jar
82-
83-
/.idea/
84-
*.iml
85-
86-
# Eclipse
87-
/.project
88-
/.classpath
89-
/.settings

Package.swift

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "ASCII-Data²JavApi",
8+
platforms: [.macOS(.v13),.visionOS(.v1),.iOS(.v16),.tvOS(.v16)],
9+
products: [
10+
// Products define the executables and libraries a package produces, making them visible to other packages.
11+
.library(
12+
name: "ASCII-Data2JavApi",
13+
targets: ["ASCII-Data2JavApi"]),
14+
],
15+
dependencies: [
16+
.package(
17+
url: "https://github.com/bastie/JavApi4Swift.git",
18+
.upToNextMajor(from: "0.4.1")
19+
)
20+
],
21+
targets: [
22+
// Targets are the basic building blocks of a package, defining a module or a test suite.
23+
// Targets can depend on other targets in this package and products from dependencies.
24+
.target(
25+
name: "ASCII-Data2JavApi",
26+
dependencies: [
27+
.product(name: "JavApi", package: "JavApi4Swift")
28+
]
29+
),
30+
.testTarget(
31+
name: "ASCII-Data2JavApiTests",
32+
dependencies: ["ASCII-Data2JavApi",
33+
.product(name: "JavApi", package: "JavApi4Swift")
34+
],
35+
resources: [.process("Resources")]
36+
),
37+
]
38+
)
39+

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# ASCII-Data
22

3-
[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/mitchtalmadge/ascii-data/master/LICENSE)
4-
[![Build Status](https://travis-ci.org/MitchTalmadge/ASCII-Data.svg?branch=master)](https://travis-ci.org/MitchTalmadge/ASCII-Data)
5-
[![GitHub issues](https://img.shields.io/github/issues/mitchtalmadge/ascii-data.svg)](https://github.com/mitchtalmadge/ascii-data/issues)
3+
A small Swift library for producing nice looking text-based line-graphs and tables. (Not necessarily in ASCII). It is a Java port with [JavApi⁴Swift](https://github.com/bastie/JavApi4Swift)
64

7-
A small Java library for producing nice looking text-based line-graphs and tables. (Not necessarily in ASCII).
5+
<img src="sampleTable.png" height="187px" align="left"/>
6+
<img src="sampleGraph.png" height="187px"/>
87

9-
<img src="http://i.imgur.com/nGK9MRD.png" height="187px" align="left"/>
10-
<img src="http://i.imgur.com/eCtF9yr.png" height="187px"/>
8+
## Thanks
9+
10+
Thanks to original Java version of [ASCII-Data](https://github.com/MitchTalmadge/ASCII-Data) from MitchTalmadge
1111

1212
## Installation, Usage, Help, and more!
1313

14-
Please view [the Wiki](https://github.com/MitchTalmadge/ASCII-Data/wiki)! You'll find everything you need to get started using this library. :)
14+
Please view [the Java Wiki](https://github.com/MitchTalmadge/ASCII-Data/wiki)! You'll find everything you need to get started using this library.
15+
16+
## License
17+
18+
ASL2.0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2023 - Sebastian Ritter <bastie@users.noreply.github.com>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
public enum com {}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2023 - Sebastian Ritter <bastie@users.noreply.github.com>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
extension com.mitchtalmadge {
6+
public enum asciidata {}
7+
}

0 commit comments

Comments
 (0)