Skip to content

Commit 90fdb24

Browse files
authored
Merge pull request #21 from readdle/update-version
Dev: fix warnings. update version
2 parents 1c2726b + a82e4a4 commit 90fdb24

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
GROUP=com.readdle.swift.java.codegen
2-
VERSION_NAME=0.6.15
2+
VERSION_NAME=0.7.0
33

4-
org.gradle.jvmargs=-Xmx1536m
4+
org.gradle.jvmargs=-Xmx1536m

sample/src/main/swift/Sources/SampleAppCore/SampleReference.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public class SampleReference {
9292
}
9393

9494
public func exceptionCheck(_ var1: Error) -> Error {
95-
let domain = (var1 as! NSError).domain
96-
let code = (var1 as! NSError).code
95+
let domain = (var1 as NSError).domain
96+
let code = (var1 as NSError).code
9797
NSLog("Error: \(domain) \(code)")
9898

9999
return var1

sample/src/main/swift/Sources/SampleAppCore/SampleValue.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Foundation
22

33
public struct SampleValue: Codable, Hashable {
44

5-
public var string: String
5+
public var string: String
66

77
public var integer: Int = 32
88
public var int8: Int8 = 8
@@ -37,24 +37,24 @@ public struct SampleValue: Codable, Hashable {
3737
}
3838

3939
public static func getRandomValue() -> SampleValue {
40-
return SampleValue(string: UUID().uuidString)
40+
return SampleValue(string: UUID().uuidString)
4141
}
4242

4343
public func saveValue() {
44-
NSLog("save SampleValue: \(string)")
44+
NSLog("save SampleValue: \(string)")
4545
}
4646

4747
public func isSame(other: SampleValue) -> Bool {
48-
return self == other
48+
return self == other
4949
}
5050

5151
public static func funcThrows() throws {
52-
throw NSError(domain: "Error", code: 1)
52+
throw NSError(domain: "Error", code: 1)
5353
}
5454

5555
// MARK: - dump hashable impl
56-
public var hashValue: Int {
57-
return string.hashValue
56+
public func hash(into hasher: inout Hasher) {
57+
hasher.combine(string)
5858
}
5959

6060
public static func == (lhs: SampleValue, rhs: SampleValue) -> Bool {

0 commit comments

Comments
 (0)