Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
6a01363d
Unverified
Commit
6a01363d
authored
May 02, 2018
by
Péter Szilágyi
Committed by
GitHub
May 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16644 from ligi/reduce_aar_size
build: Add ldflags "-s -w" when building aar
parents
5449139c
58c4e033
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ci.go
build/ci.go
+2
-2
No files found.
build/ci.go
View file @
6a01363d
...
@@ -731,7 +731,7 @@ func doAndroidArchive(cmdline []string) {
...
@@ -731,7 +731,7 @@ func doAndroidArchive(cmdline []string) {
// Build the Android archive and Maven resources
// Build the Android archive and Maven resources
build
.
MustRun
(
goTool
(
"get"
,
"golang.org/x/mobile/cmd/gomobile"
,
"golang.org/x/mobile/cmd/gobind"
))
build
.
MustRun
(
goTool
(
"get"
,
"golang.org/x/mobile/cmd/gomobile"
,
"golang.org/x/mobile/cmd/gobind"
))
build
.
MustRun
(
gomobileTool
(
"init"
,
"--ndk"
,
os
.
Getenv
(
"ANDROID_NDK"
)))
build
.
MustRun
(
gomobileTool
(
"init"
,
"--ndk"
,
os
.
Getenv
(
"ANDROID_NDK"
)))
build
.
MustRun
(
gomobileTool
(
"bind"
,
"--target"
,
"android"
,
"--javapkg"
,
"org.ethereum"
,
"-v"
,
"github.com/ethereum/go-ethereum/mobile"
))
build
.
MustRun
(
gomobileTool
(
"bind"
,
"-
ldflags"
,
"-s -w"
,
"-
-target"
,
"android"
,
"--javapkg"
,
"org.ethereum"
,
"-v"
,
"github.com/ethereum/go-ethereum/mobile"
))
if
*
local
{
if
*
local
{
// If we're building locally, copy bundle to build dir and skip Maven
// If we're building locally, copy bundle to build dir and skip Maven
...
@@ -852,7 +852,7 @@ func doXCodeFramework(cmdline []string) {
...
@@ -852,7 +852,7 @@ func doXCodeFramework(cmdline []string) {
// Build the iOS XCode framework
// Build the iOS XCode framework
build
.
MustRun
(
goTool
(
"get"
,
"golang.org/x/mobile/cmd/gomobile"
,
"golang.org/x/mobile/cmd/gobind"
))
build
.
MustRun
(
goTool
(
"get"
,
"golang.org/x/mobile/cmd/gomobile"
,
"golang.org/x/mobile/cmd/gobind"
))
build
.
MustRun
(
gomobileTool
(
"init"
))
build
.
MustRun
(
gomobileTool
(
"init"
))
bind
:=
gomobileTool
(
"bind"
,
"--target"
,
"ios"
,
"--tags"
,
"ios"
,
"-v"
,
"github.com/ethereum/go-ethereum/mobile"
)
bind
:=
gomobileTool
(
"bind"
,
"-
ldflags"
,
"-s -w"
,
"-
-target"
,
"ios"
,
"--tags"
,
"ios"
,
"-v"
,
"github.com/ethereum/go-ethereum/mobile"
)
if
*
local
{
if
*
local
{
// If we're building locally, use the build folder and stop afterwards
// If we're building locally, use the build folder and stop afterwards
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment