CN102053836B - Implementation method of version management tool for Android application development - Google Patents

Implementation method of version management tool for Android application development Download PDF

Info

Publication number
CN102053836B
CN102053836B CN 201010616472 CN201010616472A CN102053836B CN 102053836 B CN102053836 B CN 102053836B CN 201010616472 CN201010616472 CN 201010616472 CN 201010616472 A CN201010616472 A CN 201010616472A CN 102053836 B CN102053836 B CN 102053836B
Authority
CN
China
Prior art keywords
file
version
engineering
eclipse
svn
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 201010616472
Other languages
Chinese (zh)
Other versions
CN102053836A (en
Inventor
姜凡
王政东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Electronics Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Electronics Industry Co Ltd filed Critical Guangdong Oppo Electronics Industry Co Ltd
Priority to CN 201010616472 priority Critical patent/CN102053836B/en
Publication of CN102053836A publication Critical patent/CN102053836A/en
Application granted granted Critical
Publication of CN102053836B publication Critical patent/CN102053836B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an implementation method of a version management tool for Android application development. The whole version management process of modifying an encapsulation version number, updating a local code, compiling the current project, submitting the local code and adding version description information can be completed by adopting one key operation, thus an interactive interface is realized. Compared with the traditional operation method, the method provided by the invention has the advantages that the whole process can be completed by means of one key operation, operating steps of SVN (subversion) are simplified, and the version number of an Android project and the version number of the SVN can be ensured to be consistent; and meanwhile an Eclipse plug-in form is adopted for release, the complete integration with an Android application development environment can be realized, the good interactive interface is realized, the working efficiency of a developer is improved, and the cost is reduced.

Description

A kind of implementation method of Version of Android application and development
Technical field
The present invention relates to a kind of implementation method, particularly relate to a kind of implementation method of Version of Android application and development.
Background technology
In present Android performance history, the abbreviation of the English subversion of use SVN() carrying out code administration is absolutely necessary, but SVN submits to the operation steps of code slightly aobvious loaded down with trivial details, maloperation happens occasionally, and the SVN instrument is inadequate to the version management support of Android engineering, and the chaotic developer of giving of the version that causes thus and tester's communication and bug submit to and brought difficulty.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of implementation method of Version of Android application and development is provided, simplified the operation steps of SVN, can guarantee that simultaneously Android engineering release number and SVN version number are consistent.
In order to achieve the above object, the technical solution used in the present invention is, a kind of implementation method of Version of Android application and development, and its step is as follows:
Step S1 obtains the Eclipse plug-in unit engineering of current selection, if can not obtain Eclipse plug-in unit engineering from current selection, will automatically forbid Version, obtains successfully then to allow the user to enable Version;
Step S2 after the user enables Version, calls SVN order connection server, reads the SVN version number of current engineering on server, and is recorded as N;
Step S3, resolve the AndroidManifest.xml file of current Eclipse plug-in unit engineering, the property value of Eclipse plug-in unit engineering configuration file Android:versionCode is revised as the new N+1 of version number, because when code is uploaded, SVN version number can add one automatically, thereby equate with N+1, guaranteed engineering release number and SVN version number consistance;
Step S4 calls the update update command of SVN, and fresh code more from the server guarantees the consistent of Android engineering code and server latest edition;
Step S5 calls the current engineering of Ant script automatic compiling, compiles the abbreviation that successfully then generates the English Android Package of APK(, i.e. the Android installation kit) file, compile and unsuccessfully then point out and stop running, jump to step S8;
Step S6 prepares to submit to code, ejects dialog box, and imprint information is added in prompting;
Step S7, the commit order of calling SVN is submitted to server with local code;
Step S8 when operation is finished, removes the part temporary file;
Step S9 refreshes current engineering automatically in Eclipse, project file content and local file system are consistent.
Compared with prior art, the invention has the beneficial effects as follows: adopt one-touch operation to finish all versions management process of encapsulation version number modification, code update, compiling, code submission, interpolation imprint information, simplified the operation steps of SVN, can guarantee that simultaneously Android engineering release number and SVN version number are consistent, and the form issue with the Eclipse plug-in unit, can carry out fully integrated with the Android Application development environ-ment, realized good interactive interface, improve efficient, reduced cost.
Description of drawings
Fig. 1 is software flow pattern of the present invention.
Embodiment
Purport of the present invention is to overcome the deficiencies in the prior art, a kind of implementation method of Version of Android application and development is provided, adopt one-touch operation, encapsulate version number modification, code update, compiling, code fully and submitted, added all versions management process of imprint information to, simplified the operation steps of SVN, can guarantee that simultaneously Android engineering release number and SVN version number are consistent, and with the form issue of Eclipse plug-in unit, can carry out fully integrated with the Android Application development environ-ment.
Eclipse is famous cross-platform free Sets IDE (IDE).Be mainly used at first the Java language exploitation, but also make it as the developing instrument of other computereses such as C++ and Python by plug-in unit at present, Eclipse's itself is a framework platform, but the support of numerous plug-in units is so that Eclipse has the dirigibility that the relatively-stationary IDE software of other functions is difficult to have.The invention provides a kind of implementation method of Version of Android application and development, simplified the operation steps of SVN.Be elaborated with reference to accompanying drawing below in conjunction with embodiment, in order to technical characterictic of the present invention and advantage are carried out more deep annotation.
Software flow pattern of the present invention as shown in Figure 1, a kind of implementation method of Version of Android application and development, its step is as follows:
Step S1 obtains the Eclipse plug-in unit engineering of current selection, if can not obtain Eclipse plug-in unit engineering from current selection, will automatically forbid Version, obtains successfully then to allow the user to enable Version;
Step S1.1, newly-built Eclipse plug-in unit engineering, in the META-INF/MANIFEST.MF file, add extension point org.eclipse.ui.actionSets, by this extension point, title, icon, the position of Version in the menu of Eclipse, toolbar, engineering menu is set, add simultaneously the enablement label, the Disable/Enable of definition Version, i.e. forbidding/initiate mode;
Step S1.2 judges whether to obtain the file under Eclipse plug-in unit engineering or the engineering from user's current selection;
Step S1.3 obtains failure and then can automatically forbid Version, obtains and successfully then allows to enable Version;
Step S2 after the user enables Version, calls SVN order connection server, reads the SVN version number of current engineering on server, and is set to N;
Step S2.1, mounting software Slik Subversion, the add-on file of Version and Slik Subversion installation file are packaged into a new installation file, carry out this installation file, automatically add-on file wherein is installed to Eclipse, move simultaneously Slik Subversion, reminding user is installed Slik Subversion;
Step S2.2 carries out the bat autoexec by Java API, and the bat autoexec is responsible for calling the info order of SVN, reads the SVN version information of current engineering on server, then is kept in the local temporary file;
Step S2.3 uses Java to read the content of temporary file, parses the N of SVN version number;
Step S3, resolve the AndroidManifest.xml file of current Eclipse plug-in unit engineering, the property value of Eclipse plug-in unit engineering configuration file Android:versionCode is revised as the new N+1 of version number, because when code is uploaded, SVN version number can add one automatically, thereby equate with N+1, guaranteed engineering release number and SVN version number consistance;
Step S4 calls the update update command of SVN, and fresh code more from the server guarantees the consistent of Android engineering code and server latest edition;
Step S5 calls the current engineering of Ant script automatic compiling, compiles and successfully then generates the APK file, compiles unsuccessfully then to point out and stop running, and jumps to step S8;
Step S5.1, before compiling, the information of the Android development environment of local computer be must collect, the installation path of Eclipse, the work space path of Eclipse, the installation path of Android SDK comprised, and according to these Information generation compilation script files;
Step S5.2 uses the compilation script file in the Java invocation step 5.1, generates autoexec as intermediate file, transfers autoexec with Java, then with autoexec operation compilation script file;
Step S5.3, in the process of compiling Android engineering, Java is responsible for checking the output content of compiling, when finding compile error is arranged, the compiling of then print error message, and termination, stop the operation of Version, do not carry out code and upload, and jump to step S8, compile and successfully then generate the APK file;
Step S6 prepares to submit to code, ejects dialog box, and imprint information is added in prompting;
Step S7, the commit order of calling SVN is submitted to server with local code;
Step S8 when operation is finished, removes the part temporary file;
Step S9 refreshes current engineering automatically in Eclipse, project file content and local file system are consistent.
In the implementation of above-mentioned steps S5, also need to carry out following steps:
Collect the Android development environment information of local computer, will proceed as follows respectively,
(a) obtain the Eclipse installation path: carry out System.getProperty (" user.dir ") and can obtain local Eclipse installation path; (b) obtain Eclipse work space path: carry out the acquiescence work space path that Platform.getInstanceLocation () .getURL () .getPath () obtains local Eclipse; (c) obtain Android SDK installation path: after in Eclipse, setting Android SDK, the installation path of Android SDK is kept in the configuration file of work space, the path is :/.metadata/.plugins/org.eclipse.core.runtime/.settings/co m.android.ide.eclipse.adt.prefs, resolve the content of this document, can obtain the installation path of local Android SDK.
After collecting the Android development environment information of local computer, need to set up autoexec and carry out Ant compilation script file, the statement that wherein is used in the autoexec carrying out is: java-cp %EQUINOXJAR% org.eclipse.equinox.launcher.Main-application org.eclipse.ant.core.antRunner-data %WORKSPACE%-buildfile %BUILDFILE%.
And the compilation script file that generates in step S5.1 is general only with generating once, still may lose efficacy because of the change of Android development environment, therefore adds the action button that regenerates script file in Eclipse engineering menu.
Although the present invention has made clear and complete description by instantiation to how to realize the method for the Version of Android application and development based on Eclipse plug-in unit engineering, but the present invention is not limited only to described embodiment, and to reach identical purpose be contingent and all be included in the present invention by simple reprogramming.

Claims (2)

1. the implementation method of the Version of an Android application and development, its step is as follows:
Step S1 obtains the Eclipse plug-in unit engineering of current selection, if can not obtain Eclipse plug-in unit engineering from current selection, will automatically forbid Version, obtains successfully then to allow the user to enable Version;
Step S1.1, newly-built Eclipse plug-in unit engineering, in the META-INF/MANIFEST.MF file, add extension point org.eclipse.ui.actionSets, by this extension point, title, icon, the position of Version in the menu of Eclipse, toolbar, engineering menu is set, add simultaneously the enablement label, the Disable/Enable of definition Version, i.e. forbidding/initiate mode;
Step S1.2 judges whether to obtain the file under Eclipse plug-in unit engineering or the engineering from user's current selection;
Step S1.3 obtains failure and then can automatically forbid Version, obtains and successfully then allows to enable Version;
Step S2 after the user enables Version, calls SVN order connection server, reads the SVN version number of current engineering on server, and is recorded as N;
Step S2.1, mounting software Slik Subversion, the add-on file of Version and Slik Subversion installation file are packaged into a new installation file, carry out this installation file, automatically add-on file wherein is installed to Eclipse, move simultaneously Slik Subversion, reminding user is installed Slik Subversion;
Step S2.2 carries out the bat autoexec by Java API, and the bat autoexec is responsible for calling the info order of SVN, reads the SVN version information of current engineering on server, then is kept in the local temporary file;
Step S2.3 uses Java to read the content of temporary file, parses the N of SVN version number;
Step S3, resolve the AndroidManifest.xml file of current Eclipse plug-in unit engineering, the property value of Eclipse plug-in unit engineering configuration file Android:versionCode is revised as the new N+1 of version number, because when code is uploaded, SVN version number can add one automatically, thereby equate with N+1, guaranteed engineering release number and SVN version number consistance;
Step S4 calls the update update command of SVN, and fresh code more from the server guarantees the consistent of Android engineering code and server latest edition;
Step S5 calls the current engineering of Ant script automatic compiling, compiles and successfully then generates the APK file, compiles unsuccessfully then to point out and stop running, and jumps to step S8;
Step S5.1, before compiling, the information of the Android development environment of local computer be must collect, the installation path of Eclipse, the work space path of Eclipse, the installation path of Android SDK comprised, and according to these Information generation compilation script files;
Step S5.2 uses the compilation script file in the Java invocation step 5.1, generates autoexec as intermediate file, transfers autoexec with Java, then with autoexec operation compilation script file;
Step S5.3, in the process of compiling Android engineering, Java is responsible for checking the output content of compiling, when finding compile error is arranged, the compiling of then print error message, and termination, stop the operation of Version, do not carry out code and upload, and jump to step S8, compile and successfully then generate the APK file;
Step S6 prepares to submit to code, ejects dialog box, and imprint information is added in prompting;
Step S7, the commit order of calling SVN is submitted to server with local code;
Step S8 when operation is finished, removes the part temporary file;
Step S9 refreshes current engineering automatically in Eclipse, project file content and local file system are consistent.
2. the implementation method of the Version of Android application and development according to claim 1 is characterized in that: added the function that regenerates script file among the described step S5.1 in Eclipse engineering menu.
CN 201010616472 2010-12-31 2010-12-31 Implementation method of version management tool for Android application development Expired - Fee Related CN102053836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010616472 CN102053836B (en) 2010-12-31 2010-12-31 Implementation method of version management tool for Android application development

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010616472 CN102053836B (en) 2010-12-31 2010-12-31 Implementation method of version management tool for Android application development

Publications (2)

Publication Number Publication Date
CN102053836A CN102053836A (en) 2011-05-11
CN102053836B true CN102053836B (en) 2013-04-10

Family

ID=43958193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010616472 Expired - Fee Related CN102053836B (en) 2010-12-31 2010-12-31 Implementation method of version management tool for Android application development

Country Status (1)

Country Link
CN (1) CN102053836B (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508710B (en) * 2011-09-28 2014-01-01 奇智软件(北京)有限公司 Method and system for switching between IE6 kernel and novel IE kernel
CN102495736A (en) * 2011-12-19 2012-06-13 曙光信息产业(北京)有限公司 Method and system for identifying software code svn version in executable file
CN103186380B (en) * 2011-12-31 2016-04-20 北大方正集团有限公司 The development approach of APK and device
CN102929600B (en) * 2012-06-13 2016-06-29 许继电气股份有限公司 Monitoring system version recognition methods based on ELF
CN103677765B (en) * 2012-08-31 2018-07-06 腾讯科技(深圳)有限公司 Automatically releasing versions method, apparatus and storage medium
CN103677877B (en) * 2012-09-12 2018-01-30 腾讯科技(深圳)有限公司 A kind of method and device of local advertising software development kit upgrading
KR101427562B1 (en) * 2013-03-08 2014-08-07 주식회사 인프라웨어테크놀러지 Method for automatically transforming an android application into tizen-installable application package, and computer-readable recording medium for the same
CN103970563B (en) * 2014-04-15 2017-04-05 四川长虹电器股份有限公司 The method of dynamic load Android class
CN103927213B (en) * 2014-04-18 2017-08-25 广州猎豹网络科技有限公司 A kind of file compiling method and compilation device
CN104536745B (en) * 2014-12-19 2018-01-16 用友金融信息技术有限公司 Task amending method and task modification device
CN104615462B (en) * 2015-01-26 2018-04-06 北京邮电大学 Cross-platform Mobile solution generation service end and system
CN105630569A (en) * 2015-12-17 2016-06-01 北京金山安全软件有限公司 Software source code processing method and device and electronic equipment
CN105893260A (en) * 2016-03-31 2016-08-24 上海携程商务有限公司 Automatic release system and method for call center
CN105955746B (en) * 2016-05-06 2019-03-12 中国银行股份有限公司 A kind of method and device of version management
CN105867950A (en) * 2016-05-31 2016-08-17 广东能龙教育股份有限公司 Gradle and Svn-based online automatic packaging method
CN106569869B (en) * 2016-11-14 2019-04-19 平安科技(深圳)有限公司 Plug-in unit packaging method and device
CN106897105A (en) * 2017-02-14 2017-06-27 泰康保险集团股份有限公司 program processing method and device
CN108345467B (en) * 2017-03-14 2021-04-16 平安科技(深圳)有限公司 Version tree file updating method and device
CN107276844A (en) * 2017-06-01 2017-10-20 郑州云海信息技术有限公司 It is a kind of that the automatic setting method for logining server system is oriented based on linux operating systems
CN108196877B (en) * 2018-01-16 2019-01-29 北京三快在线科技有限公司 The method and apparatus and calculating equipment of component release management
CN110888669B (en) * 2018-09-10 2023-04-28 福建天泉教育科技有限公司 Method and system for creating template engineering on IDE
CN109408104B (en) * 2018-09-18 2021-11-30 天津龙拳风暴科技有限公司 Method and device for acquiring game integration information
CN109471623A (en) * 2018-11-13 2019-03-15 福建北峰通信科技股份有限公司 A kind of method of rapid deployment CDS exploitation environment
CN110825361B (en) * 2019-10-29 2023-06-16 成都西加云杉科技有限公司 Code modification method, device, equipment and readable storage medium
CN111858315B (en) * 2020-06-29 2022-10-18 福建省农村信用社联合社 Software debugging method, device, equipment and medium based on version management
CN111651197B (en) * 2020-07-01 2023-04-28 中国银行股份有限公司 Automatic warehouse moving method and device
CN113157312A (en) * 2021-04-15 2021-07-23 山东新一代信息产业技术研究院有限公司 Method for checking SVN version number corresponding to corresponding source code in application

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924798A (en) * 2010-09-08 2010-12-22 北京大学 Transparent Android component loading method and system based on file types

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7950024B2 (en) * 2006-12-27 2011-05-24 Oracle America, Inc. Mechanism for transparently interfacing with a third party version control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924798A (en) * 2010-09-08 2010-12-22 北京大学 Transparent Android component loading method and system based on file types

Also Published As

Publication number Publication date
CN102053836A (en) 2011-05-11

Similar Documents

Publication Publication Date Title
CN102053836B (en) Implementation method of version management tool for Android application development
CN107678748B (en) Source code file compiling method and device
WO2017185606A1 (en) Overlay mechanism-based apk development method and system
Hellman Android programming: Pushing the limits
CN111008009B (en) Service componentization method and system based on Flutter
WO2016176059A1 (en) Mapping between local and remote for seamless build and design time experience
JP2017146966A (en) Method and system for extending function to package file
CN103713902A (en) Method and system for BOA compiling based on Android system
CN103473072B (en) Mobile cloud computing application program development method
CN110659031A (en) Compiling method and device of application program, electronic equipment and storage medium
CN102955698A (en) Processing method and device based on multi-terminal software development
CN104035778A (en) Android application program development method
CN111966357A (en) Operating system application compiling method and device and electronic equipment
CN101944061B (en) Method and device for debugging codes
US20170286064A1 (en) Projection of build and design-time inputs and outputs between different build environments
CN105446886B (en) A kind of computer program debugging method and apparatus
US20140033167A1 (en) Method and system for generating a manifestation of a model in actionscript
CN111061486B (en) Android application program increment method
CN105278445A (en) Secondary development method of synchronous generator excitation regulator control program
CN110750310A (en) Binary and source code switching method based on IOS system componentization development
CN103049300A (en) Method for supporting running of FLASH on WEB platform by C and C++ codes
CN114721647B (en) Object-oriented programming method based on codeless application development
CN111596923B (en) Haxe static link library construction method and device and electronic equipment
CN102799462B (en) Based on the script engine device of Eclipse platform and the collocation method of Eclipse platform
CN110413268B (en) Middleware verification method, storage medium, equipment and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: GUANGDONG OPPO MOBILE COMMUNICATIONS CO., LTD.

Free format text: FORMER OWNER: OPPO ELECTRIC INDUSTRY CO., LTD.

Effective date: 20130604

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20130604

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: The town of Changan city of Dongguan province Guangdong 523860 Wusha Chen Wu Xin'an Industrial Park Guangdong oppo Electronic Industry Co Ltd

Patentee before: Guangdong Oppo Electronics Industry Co.,Ltd.

CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130410

CF01 Termination of patent right due to non-payment of annual fee