语言

Menu
Sites
Language
Tizen native app and git

Hi all, 

i'm going to share my application on a git server, in order to share it across my various computers. 

Now the question is which files/folder to share?

At the moment i shared the following files and folders:

  • inc
  • res
  • shared
  • src - With the exception of managed folder
  • tizen-manifest.xml
  • shared/res

 

So my question is: are the enough? I see also other hidden files i.e. .cproject, .exportMap, .tproject etc. Should i include some of them?  What about the project_def.prop file?

 

 

查看选择的答案

响应

11 回复
Mark as answer
André Reus

If you use .gitignore, it would be much easier to manage the project. Then your confusion about what to share and what not share will be gone. 

Typically .gitignore file may contain these,

/.cproject
/.checkers
/.rds_delta
/.sdk_delta.info
/.sign
/crash-info/
/res/res.xml
/Debug/
/Release/
/lib/*.so*
/lib/*.a
/medialibrary/
*.tmp
*~
res/edje/*.edj

Also follow this thread https://stackoverflow.com/questions/45813101/what-should-be-in-gitignore-for-wearable-native-c-c-tizen-studio-project/45830165#45830165

Ivan Gualandri

Perfect, Thank you.

Ivan Gualandri

What i'm not sure about, is the managed folder, that is a folder that is generated by the UI Builder (i suppose). 

This folder should be shared on git? Or not?

André Reus

You may try like this 

  1. /lib/*
Ivan Gualandri

Yeah, but what about this folder: 

/managed

?

André Reus

Do you want to ignore the contents of managed folder? If that, follow previous comment

/managed/*

 

Ivan Gualandri

Probably my question was not clear. 

What i want to know is if i "should" ignore the managed folder, not how to do it.

My understanding about that folder is that it is generated by the uibuilder. So i was wondering if it is needed to be kept under version control, or can be safely ignored.

André Reus

If you ignore the UIBuilder generated code and commit....Then your team member will not get these code. If he/she wants to run the project then what will happen? Error! 

Ivan Gualandri

I was expecting that the other team member tizen studio generates that code. 

André Reus

Then have a try !!! And update us here

Ivan Gualandri

Ok, i tried to delete the managed folder from my project, and as soon as refreshed it, that folder was recreated, So i suppose that maybe is not necessary to save it in git!