Skip to content

Commit

Permalink
debug build optimizations (#186)
Browse files Browse the repository at this point in the history
* - optimizations for gradle properties for a faster build (assembleDebuf ~45 secs). pushing also pods differences when testing this

* - fix iOS config causing trouble on shared code build
  • Loading branch information
rodvar authored Feb 4, 2025
1 parent e882513 commit 63af1ed
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 24 deletions.
8 changes: 7 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx8g"
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.parallel=true
org.gradle.workers.max=6

# Kotlin
kotlin.code.style=official
## this should be change to static when we stop actively changing ths depedencies
kotlin.native.incrementalCompilation=true
kotlin.native.cacheKind=dynamic
kotlin.native.memory.maxHeapSize=8g

# Android
android.useAndroidX=true
Expand All @@ -25,4 +31,4 @@ client.ios.version=0.0.9
## Defaults for connectivity when not set by user
client.x.trustednode.port=8090
client.android.trustednode.ip=10.0.2.2
client.ios.trustednode.ip=localhost
client.ios.trustednode.ip=localhost
40 changes: 20 additions & 20 deletions iosClient/iosClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
74831B712D5088E600B729F4 /* Frameworks */,
74831B732D5088E600B729F4 /* Resources */,
74831B762D5088E600B729F4 /* [CP] Embed Pods Frameworks */,
74831B772D5088E600B729F4 /* [CP] Copy Pods Resources */,
E5DF94FBA926A610E3FC266C /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand All @@ -172,7 +172,7 @@
B92378962B6B1156000C7307 /* Frameworks */,
7555FF79242A565900829871 /* Resources */,
3281115E126FA938007845C3 /* [CP] Embed Pods Frameworks */,
2243BAEE9EA62E64947F5C9C /* [CP] Copy Pods Resources */,
E172F543EFAFEA6517AED88C /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -240,23 +240,6 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
2243BAEE9EA62E64947F5C9C /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Bisq Connect Debug/Pods-Bisq Connect Debug-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Bisq Connect Debug/Pods-Bisq Connect Debug-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Bisq Connect Debug/Pods-Bisq Connect Debug-resources.sh\"\n";
showEnvVarsInLog = 0;
};
2F2A98D842CF884E9E4EADA4 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -353,7 +336,24 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Bisq Connect/Pods-Bisq Connect-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
74831B772D5088E600B729F4 /* [CP] Copy Pods Resources */ = {
E172F543EFAFEA6517AED88C /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Bisq Connect Debug/Pods-Bisq Connect Debug-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Bisq Connect Debug/Pods-Bisq Connect Debug-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Bisq Connect Debug/Pods-Bisq Connect Debug-resources.sh\"\n";
showEnvVarsInLog = 0;
};
E5DF94FBA926A610E3FC266C /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "NO"
buildForRunning = "NO"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
Expand Down Expand Up @@ -53,9 +53,9 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "74831B692D5088E600B729F4"
BlueprintIdentifier = "7555FF7A242A565900829871"
BuildableName = "Bisq Connect.app"
BlueprintName = "Bisq Connect"
BlueprintName = "Bisq Connect Debug"
ReferencedContainer = "container:iosClient.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
Expand Down

0 comments on commit 63af1ed

Please sign in to comment.