-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||
<component name="FacetManager"> | ||
<facet type="Python" name="Python"> | ||
<configuration sdkName="Python 3.5.4 (~/anaconda3/envs/IDEAPy/bin/python)" /> | ||
</facet> | ||
</component> | ||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> | ||
<output url="file://$MODULE_DIR$/target/classes" /> | ||
<output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||
<module external.linked.project.id="CryptoCompareAPI" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="me.joshmcfarlin" external.system.module.version="1.1" type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> | ||
<excludeFolder url="file://$MODULE_DIR$/target" /> | ||
<excludeFolder url="file://$MODULE_DIR$/.gradle" /> | ||
<excludeFolder url="file://$MODULE_DIR$/build" /> | ||
<excludeFolder url="file://$MODULE_DIR$/out" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="library" name="Python 3.5.4 (~/anaconda3/envs/IDEAPy/bin/python) interpreter library" level="application" /> | ||
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.2" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-api:5.0.2" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.opentest4j:opentest4j:1.0.0" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-commons:1.0.2" level="project" /> | ||
</component> | ||
</module> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apply plugin: 'java' | ||
|
||
group = 'me.joshmcfarlin' | ||
version = '1.1' | ||
|
||
description = """A Java implementation of the CryptoCompare API service.""" | ||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
tasks.withType(JavaCompile) { | ||
options.encoding = 'UTF-8' | ||
} | ||
|
||
configurations.all { | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'com.google.code.gson:gson:2.8.5' | ||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.1.0' | ||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.1.0' | ||
} | ||
|
||
test { | ||
useJUnit() | ||
maxHeapSize = '1G' | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
def format_collection(collection): | ||
for line in collection.splitlines(): | ||
if len(line) != 0: | ||
var_type, var_name = line.rsplit(' ', 1) | ||
var_name = var_name.replace(';', '') | ||
print("/**\n *\n */") | ||
print("@SerializedName(\"" + var_name + "\")") | ||
print(var_type + ' ' + var_name[0].lower() + var_name[1:] + ';') | ||
else: | ||
print() | ||
|
||
|
||
coll = """ | ||
public String Description; | ||
public String Features; | ||
public String Technology; | ||
public Double TotalCoinSupply; | ||
public String Algorithm; | ||
public String ProofType; | ||
public String StartDate; | ||
public String Twitter; | ||
public String AffiliateUrl; | ||
public String Website; | ||
public Sponsor sponsor; | ||
public int LastBlockExplorerUpdateTS; | ||
public String DifficultyAdjustment; | ||
public String BlockRewardReduction; | ||
public int BlockNumber; | ||
public double BlockTime; | ||
public double NetHashesPerSecond; | ||
public double TotalCoinsMined; | ||
public double PreviousTotalCoinsMined; | ||
public double BlockReward; | ||
public String TextTop; | ||
public String Link; | ||
public String ImageUrl; | ||
""" | ||
|
||
format_collection(coll) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |