मैं वर्तमान में कुछ ऑटो ब्रांडिंग काम करने के लिए चींटी के साथ खेल रहा हूं। मैंने डिफ़ॉल्ट build.xml को संशोधित किया और अपना खुद का लक्ष्य सेट किया। मुझे क्या उम्मीद है कि क्या एंट स्क्रिप्ट में कोई तरीका है जो स्वचालित रूप से एपीके फ़ाइल का नाम बदलकर कुछ निश्चित नाम के साथ बना सकता है?ऑटो रीमिंग आउटपुट एपीके फ़ाइल में चींटी का उपयोग कैसे करें?
मैं वर्तमान में मेरे build.xml में इस चींटी लक्ष्य सेटअप है:
<target name="release-brandA"
depends="default, -set-release-mode, -release-obfuscation-check, -package, -post-package, -release-prompt-for-password, -release-nosign, -release-sign, -post-build"
description="Builds the application in release mode for brandA.">
<delete dir="${res}" />
<copydir dest="${res}" src="${branding}/brandA" forceoverwrite="ture" />
<replaceregexp flags="g" byline="false">
<regexp pattern="import com.arthur.android(.*).R;"/>
<substitution expression="import com.arthur.android.brandA.R;"/>
<fileset dir="src" includes="**/*.java" />
</replaceregexp>
<replaceregexp flags="g" byline="false">
<regexp pattern="package="com.arthur.android(.*)"" />
<substitution expression="package="com.arthur.android.brandA"" />
<fileset dir="" includes="AndroidManifest.xml" />
</replaceregexp>
</target>
वहाँ एक रास्ता है कि मैं कुछ और कार्य जोड़ सकता है, यह बताने के लिए आउटपुट फ़ाइल सिर्फ brandA.apk तरह है?
धन्यवाद!
बिल्कुल मुझे क्या चाहिए! धन्यवाद! – Arthur0902