Skip to content

Commit a6a3b99

Browse files
committed
update project properties and build xml
1 parent d8645d6 commit a6a3b99

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ bin
22
gen
33
.classpath
44
.project
5+
local.properties

build.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project name="android_websockets" default="help">
2+
<project name="android-websockets" default="help">
33

44
<!-- The local.properties file is created and updated by the 'android' tool.
55
It contains the path to the SDK. It should *NOT* be checked into
@@ -28,6 +28,15 @@
2828
-->
2929
<property file="ant.properties" />
3030

31+
<!-- if sdk.dir was not set from one of the property file, then
32+
get it from the ANDROID_HOME env var.
33+
This must be done before we load project.properties since
34+
the proguard config can use sdk.dir -->
35+
<property environment="env" />
36+
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
37+
<isset property="env.ANDROID_HOME" />
38+
</condition>
39+
3140
<!-- The project.properties file is created and updated by the 'android'
3241
tool, as well as ADT.
3342
@@ -41,7 +50,7 @@
4150

4251
<!-- quick check on sdk.dir -->
4352
<fail
44-
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
53+
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
4554
unless="sdk.dir"
4655
/>
4756

proguard-project.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# To enable ProGuard in your project, edit project.properties
2+
# to define the proguard.config property as described in that file.
3+
#
4+
# Add project specific ProGuard rules here.
5+
# By default, the flags in this file are appended to flags specified
6+
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7+
# You can edit the include path and order by changing the ProGuard
8+
# include property in project.properties.
9+
#
10+
# For more details, see
11+
# http://developer.android.com/guide/developing/tools/proguard.html
12+
13+
# Add any project specific keep options here:
14+
15+
# If your project uses WebView with JS, uncomment the following
16+
# and specify the fully qualified class name to the JavaScript interface
17+
# class:
18+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19+
# public *;
20+
#}

0 commit comments

Comments
 (0)