android


Is it possible to make android library contains readme.txt?


I am new in Gradle.
I've been made android library and I will upload this into maven repository.
But is it possible to add "Readme.txt" into my library?
for example,
When someone add my library into dependencies section in build.gradle and sync.
then Gradle creates(or copy) "Readme.txt" into target project(probably $projectDir or $projectDir/app) and user can read it(Like NuGet)
(Important things of this library, how to use example or something like that.)
I think it is really annoying visit project web-site and read "How to use" every using single library.
I want my library contains how to use text file.
Thank you.
I don't think this is possible, you don't know how the calling use is referencing your project. They are likely only referencing the compiled source code and never running your gradle file.
This is not a good idea, you don't know their exact folder structure, and even if you did you can not be sure that your readme.txt would have a unique name that did not conflict with their project file.s
When using a .jar file you cannot include this as resources cannot be compiled into it. But you can export your library as an *.aar file which can contain resource files. You get this by using "com.android.library" as your plugin type and can then find the aar-file in your build folder after you have built it.
This can then be included in your other project e.g. as a file reference.

Related Links

Can not get camera output, face detection android
android ObjectGraph in new version of Dagger2
React native: catch volume buttons press (not for volume adjusting)
Not able to populate text in autoCompleteTextView in android
why Broadcast Receiver Don't work for service application android?
Showing big view notifications with Firebase Cloud Messaging
Not able to upload an Image in Firebase Storage
Error with installing app on android device by AndroidStudio
How to make several mobile devices (both iOS and Android) communicate without using internet
OnClickListener doesn't change view in Custom BaseAdapter
Android studio palette is missing
How to parse inner JSON object using Gson in Android
Sending POST within BroadcastReceiver
In Exoplayer,How to reload and resume playback automatically?
Draw route using points slowly
cropped image and save it into mysqldatabse

Categories

HOME
httparty
awk
apache-jena
3d
swt
static
package
bitbucket-api
tail
iis-6
gluon-mobile
emoji
opengl-es-3.0
gkturnbasedmatch
atlassian
intershop
googlebot
rubymotion
pagespeed
dataflow-diagram
exploit
sinch
iis-express
dotspatial
gitlab-api
cart
dumpbin
catch-unit-test
mailkit
instantiation
alphabetical
cin
apache-stanbol
datacachefactory
parser-generator
lpsolve
dotnet-httpclient
spring-integration-sftp
page-replacement
pair-programming
trigger.io
universal-analytics
donations
angular2-testing
mapxtreme
parfor
pacemaker
i386
riot
boost-serialization
grass
np-spring
ascii-art
ons-api
java-security
delayed-execution
sql-scripts
ora-00904
visual-studio-express
gd-graph
windows-phone-8-sdk
beaker-testing
cnf
cmmi
flex++
qi4j
inkcanvas
failing-tests
kqueue
infobright
cgimage
hibernateexception
expression-blend-4
promotion-code
unattended-processing
photolibrary
objective-j
delimited-text
jqueryform
murmurhash
spread
wordprocessingml
flvplayback

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App