MCPcopy Create free account
hub / github.com/golang/mobile / writeAndroidPlatform

Function writeAndroidPlatform

internal/sdkpath/sdkpath_test.go:72–82  ·  view source on GitHub ↗
(t *testing.T, sdk, name string)

Source from the content-addressed store, hash-verified

70}
71
72func writeAndroidPlatform(t *testing.T, sdk, name string) {
73 t.Helper()
74
75 platform := filepath.Join(sdk, "platforms", name)
76 if err := os.MkdirAll(platform, 0777); err != nil {
77 t.Fatal(err)
78 }
79 if err := os.WriteFile(filepath.Join(platform, "android.jar"), nil, 0666); err != nil {
80 t.Fatal(err)
81 }
82}

Callers 1

TestAndroidAPIPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected