چطور میشه این Custom Control هایی که میسازیمو به کتابخونه تبدیل کنیم بدیم بیرون؟
سلام
همونطورم که از عنوان سوالم معلومه چطور میشه اینکارو کرد و یه ویویی که ساختیمو بدیم دست یکی دیگه تا تو پروژش از قسمت Configure Build Pass اضافه کنه و استفاده کنه؟
البته منظورم به عنوان کتابخونس که بدیم بهش!
احتمالا تفاوتی با ساخت کتابخونه های دیگه نداره،
این روش ساخت یک فایل jar هست:
- Make your library project a normal project by deselecting IsLibrary flag.
- Execute your project as Android Application. (It will not show any error)
- You'll find a .jar file in bin folder along with .apk.
- Give you .jar who want to use your library.
- Tell them to just import external jar into build path.
یا این:
Step #1: Create a regular Android library project, and get it working.
Step #2: Copy that Android library project into another directory.
Step #3: Create a JAR from the compiled Java classes from the original Android library project, and put that JAR in the libs/ directory of the copy you made in Step #2. You should be able to run ProGuard on this JAR manually, though I haven't tried that.
Step #4: Remove everything inside the src/ directory of the copied library project, leaving behind and empty src/ directory.
Step #5: ZIP up or otherwise distribute the copied Android library project.
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .