Skip to content

Commit

Permalink
Enhancement/public xml (#171)
Browse files Browse the repository at this point in the history
* Test gitignore with public xml

* Fix spacing
  • Loading branch information
AllanWang authored Oct 8, 2018
1 parent 1902007 commit 2ed21b3
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 172 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/build
/captures
.externalNativeBuild
**/public.xml
4 changes: 0 additions & 4 deletions about/src/main/res-public/values/public.xml

This file was deleted.

4 changes: 0 additions & 4 deletions adapter/src/main/res-public/values/public.xml

This file was deleted.

8 changes: 6 additions & 2 deletions artifacts.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ artifacts {
// We assume resources within res-public are public
task generatepublicxml {

println "Generating public XML"

def resDir = project.projectDir.absolutePath + "/src/main/res-public"

def publicFolder = file(resDir + "/values")
Expand Down Expand Up @@ -64,7 +66,7 @@ task generatepublicxml {
) {
// Leave file comment
destXmlMkp.yield "\r\n"
destXmlMkp.comment("AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task")
destXmlMkp.comment("AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task")

if (tree.isEmpty())
"public"("name": "dummy", "type": "id")
Expand Down Expand Up @@ -96,4 +98,6 @@ task generatepublicxml {
}
}
}
}
}

build.dependsOn generatepublicxml
4 changes: 0 additions & 4 deletions colorpicker/src/main/res-public/values/public.xml

This file was deleted.

10 changes: 0 additions & 10 deletions core-ui/src/main/res-public/values/public.xml

This file was deleted.

118 changes: 0 additions & 118 deletions core/src/main/res-public/values/public.xml

This file was deleted.

19 changes: 0 additions & 19 deletions kpref-activity/src/main/res-public/values/public.xml

This file was deleted.

7 changes: 0 additions & 7 deletions mediapicker/src/main/res-public/values/public.xml

This file was deleted.

4 changes: 0 additions & 4 deletions searchview/src/main/res-public/values/public.xml

This file was deleted.

0 comments on commit 2ed21b3

Please sign in to comment.