Skip to content

Commit

Permalink
Includes generated files in kotlin build
Browse files Browse the repository at this point in the history
  • Loading branch information
gupnik committed Jan 21, 2025
1 parent 184a408 commit e839079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions codegen/bin/codegen
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@ end.parse!

entities = []
files = []
file_paths = []
[options.input, options.input_generated].each do |input_dir|
Dir.foreach(input_dir) do |item|
next if ['.', '..', '.DS_Store'].include?(item)

file_path = File.expand_path(File.join(input_dir, item))
file_paths << file_path
entity = Parser.new(path: file_path).parse
next if entity.nil?

Expand Down
3 changes: 2 additions & 1 deletion kotlin/wallet-core-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ kotlin {
val main by compilations.getting
main.cinterops.create("WalletCore") {
packageName = "com.trustwallet.core"
headers(rootDir.parentFile.resolve("include/TrustWalletCore").listFiles()!!)
headers(rootDir.parentFile.resolve("include/TrustWalletCore").listFiles()!! +
rootDir.parentFile.resolve("include/Generated/TrustWalletCore").listFiles()!!)
}
}
}
Expand Down

0 comments on commit e839079

Please sign in to comment.