good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit f8790b94 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

mobile: fix CopyFile switch to package cp

parent 8bd5bb89
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ import ( ...@@ -25,7 +25,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ethereum/go-ethereum/internal/build" "github.com/cespare/cp"
) )
// androidTestClass is a Java class to do some lightweight tests against the Android // androidTestClass is a Java class to do some lightweight tests against the Android
...@@ -212,7 +212,7 @@ func TestAndroid(t *testing.T) { ...@@ -212,7 +212,7 @@ func TestAndroid(t *testing.T) {
t.Logf("%s", output) t.Logf("%s", output)
t.Fatalf("failed to run gomobile bind: %v", err) t.Fatalf("failed to run gomobile bind: %v", err)
} }
build.CopyFile(filepath.Join("libs", "geth.aar"), "geth.aar", os.ModePerm) cp.CopyFile(filepath.Join("libs", "geth.aar"), "geth.aar")
if err = ioutil.WriteFile(filepath.Join("src", "androidTest", "java", "org", "ethereum", "gethtest", "AndroidTest.java"), []byte(androidTestClass), os.ModePerm); err != nil { if err = ioutil.WriteFile(filepath.Join("src", "androidTest", "java", "org", "ethereum", "gethtest", "AndroidTest.java"), []byte(androidTestClass), os.ModePerm); err != nil {
t.Fatalf("failed to write Android test class: %v", err) t.Fatalf("failed to write Android test class: %v", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment