Skip to content

Commit

Permalink
Adjust "javasources" slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 5, 2023
1 parent f3a4cb4 commit 14ec34c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion kmake/Data/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
sourceSets.getByName("main") {
java.setSrcDirs(listOf("{javasources}"))
java.setSrcDirs(listOf({javasources}))
}
buildTypes {
release {
Expand Down
4 changes: 2 additions & 2 deletions kmake/src/Exporters/AndroidExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ export class AndroidExporter extends Exporter {

let javasources = '';
for (let dir of project.getJavaDirs()) {
javasources += '\'' + path.relative(path.join(outdir, 'app'), path.resolve(from, dir)).replace(/\\/g, '/') + '\', ';
javasources += '"' + path.relative(path.join(outdir, 'app'), path.resolve(from, dir)).replace(/\\/g, '/') + '", ';
}
javasources += '\'' + path.relative(path.join(outdir, 'app'), path.join(Project.kincDir.toString(), 'Backends', 'System', 'Android', 'Java-Sources')).replace(/\\/g, '/') + '\'';
javasources += '"' + path.relative(path.join(outdir, 'app'), path.join(Project.kincDir.toString(), 'Backends', 'System', 'Android', 'Java-Sources')).replace(/\\/g, '/') + '"';
gradle = gradle.replace(/{javasources}/g, javasources);

fs.writeFileSync(path.join(outdir, 'app', 'build.gradle.kts'), gradle);
Expand Down
4 changes: 2 additions & 2 deletions lib/kmake/Exporters/AndroidExporter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 14ec34c

Please sign in to comment.