(inputs: {
swiftFiles: string[];
swiftVersion: string;
toolGitRev: string;
platformTriple: string;
})
| 150 | } |
| 151 | |
| 152 | export function computeCacheKey(inputs: { |
| 153 | swiftFiles: string[]; |
| 154 | swiftVersion: string; |
| 155 | toolGitRev: string; |
| 156 | platformTriple: string; |
| 157 | }): string { |
| 158 | const h = createHash('sha256'); |
| 159 | h.update(`swift=${inputs.swiftVersion}|tool=${inputs.toolGitRev}|platform=${inputs.platformTriple}|`); |
| 160 | for (const f of inputs.swiftFiles) { |
| 161 | const content = readFileSync(f); |
| 162 | h.update(`${f}:${content.length}:`); |
| 163 | h.update(content); |
| 164 | h.update('|'); |
| 165 | } |
| 166 | return h.digest('hex'); |
| 167 | } |
| 168 | |
| 169 | export function render(specs: AccessorSpec[], buildId: string, accessorHash: string): string { |
| 170 | let out = '// AUTO-GENERATED — DO NOT EDIT. Regenerate with /ios-sync.\n'; |
no outgoing calls
no test coverage detected