0

I need to pass the date of the day which the application was compiled. I mean, if tomorrow I compile and launch version 3.4 of my app, I need to save it into a variable local. I obviously could do it by saving the date manually before compile, but I need to save it in another way to avoid to forget to change the local variable before compile it.

My application is powered by React-Native. So I was searching a library to do it with but i had no luck.

SmoggeR_js
  • 2,950
  • 4
  • 22
  • 52
  • For iOS (Swift/Objective C), check this: https://stackoverflow.com/questions/26812598/get-build-date-and-time-in-swift – Andreas Oetjen Jul 11 '18 at 12:24
  • I would do it with a script, with the sed command. Before build your app, run the script and everything is fine. There has to be some way to launch a custom scipt from xCode or android studio – Poptocrack Jul 11 '18 at 12:55
  • Nice idea, I like it, I have been searching and nothing found but this could be a great alternative – SmoggeR_js Jul 11 '18 at 14:16

0 Answers0