2sxc | Duplicate an existing App - 2sxc

I want to duplicate an existing app but run into errors when doing so. I am able to rename an app just fine (both in file structure and app configuration screen) but after renaming and importing same app again it throws error.
I have tried importing FAQ app, renaming it (successfully), exporting this renamed app, then re importing FAQ app again, and trying to import my custom exported app into the new FAQ app but due to existing uploaded content it fails?
What is the best practice to duplicate an existing app? Thx

This is a rare scenario and there's a feature request to do this, but ATM you'll have to do it manually. These are the "pain points":
folder where the app is
app GUID
Since this is a rare scenario, I would
quickly import the app into another portal
change the app-folder in the DNN file management
change the app-folder in the app-settings
export the app again - and make sure you check the box "reset GUID" as it will set the GUID to 00000-0000-... which will make the import generate a new guid for you
Hope this helps.

Related

How can I completely duplicate a Firebase project? [duplicate]

I want to clone an existing Firebase project, lets name it ProjectA that previously exists on Firebase console with some Remote Config data to another new project(without any Remote Config data), lets name it ProjectB.
The idea behind my question is that currently I have developed an Android app that is using the google-service.json(Firebase configuration file) file from the ProjectA, so I want to create/clone a new Firebase project ProjectB(NOTE: I don't want a new Firebase app on the same project) that starts with exactly the same Remote Config data from ProjectA and then add the google-service.json from the new ProjectB to my new Android app.
I have read the firebase-cli documentation but looks like it's out of its scope.
Has someone accomplished something similar like this or has an idea how can I accomplish this? Thanks in advance!
I just created this ruby gem to automate the manual process that I needed to do from a web browser for cloning my remote config data from ProjectA to a my new ProjectB.
NOTE: The gem is really an alpha version and just consider remote config without any rules. If some of you want to fork it and improved please feel free to do that.
There is currently no way (neither through the Console or through an API) to create a project that is a clone of another project. At the moment you will have to re-create the config data in the new project manually.
Firebase documents a flow to move data between projects here:
https://firebase.google.com/docs/firestore/manage-data/move-data
Though the method they outline requires a billed account.

Will I have problems if I publish an app with a packagename different of bundle id?

Recently I had to change the package name of my android project because I had to disable an old app to change some pieces of information and some of the UI of it. But the business logic are pretty the same. So I wonder, can I use the same solution with a different package name for Android (for create another app in google play with the same name but different package name) and then keep the bundle id the same for iOS to not have to recreate another one in the app store? Will I have problems with it?
Thanks very much.
In my knowledge, there should not be any issues if you make sure about the following pointers:
Everything that was registered on the old bundle id is now registered for the new one and replaced with the new one all over your project. eg: if you have a firebase product used then you replace the old googleservices.json with the new one.
The old app that you have on the store is removed(To avoid confusion for users)
You can use the same key to sign the key but you cannot use the same App that you added on store earlier.
Make sure you do not have any dependency of any sort on the old bundle id.
Note: Your old app will not be replaced by this new one even though they would have the same name as the bundle id is the unique identifier for this.
There should not be any problems if you use the same bundle id for the new iOS app as you had earlier but usually, both apps have the same bundle just to keep it standard. But you can always opt. not to.
Goodluck feel free to get back if you have any more queries

2sxc - copy app to new folder and name

I created my "base" app which I plan to use for a different little-changed app with different views and additional fields.
What is the right and easiest way to make a copy of this base app to different name and folder?
Also can than that apps work side by side on one portal?
=== edit 1 ===
I already try to rename app like in this post: 2sxc : Rename App Folder
Then create a new export of entire app, and restore portal to version before rename and try to import this "new" renamed app. But get the error...
Now I am looking to exported App.xml and there are "EntityGUID" and "AttributeSet StaticName" and "App Guid" with GUID values and I think that this is a problem at importing this "new" app...
Is it possible that I make a tool to parse this XML find all GUID-s then generated the same number of new GUID-s and replace old ones with new ones and repack ZIP and then try to import this? Can this be a solution or this is totally wrong?
I make an app : https://github.com/pircjernej/NajdiNET.2sxc.Rename
If you build it or download exe from the release you can change Exported app ZIP file to new name and folder... Then just install this changed zip and do what you want...
Now work for my sample 2sxc app but did not test how to work with 2sxc sample apps... I will do this in next days...
If someone wants to test it help or contribute, you are welcome.
==== edit 1 =====
I make quick test with 2sxc blog app and I think that work OK

I want to change firebase database of existing application

I have an application based on firebase database, now I want to change the database of this existing project. Is it possible? If yes, then how can it be done?
You have got 2 options:
Keep the same project, but change your database: simply import your new Database (JSON file) from the Firebase Console.
Create another project, download the new configuration file and add it to your application. You'll get a brand new database with the new project.

Importing existing sqlite db into Swift project

I have not developed anything for IOS in a long time so please bear with me. Using the Swift language for the first time in XCode 6.3.
I have a pre-existing sqlite database, myDB.sqlite, that I want to import into my project.
I have added the sqlite Framework, added FMDB and the bridging header file and then added the myDB.sqlite file to my project. It is also included in "Copy Bundle Resources".
I am just trying to access myDB.sqlite in my bundle directory to copy it to my Documents directory when the app is run for the first time in the Simulator. However it keeps saying it cannot find the file.
In my AppDelegate.swift:
let dbPath = NSBundle.mainBundle().pathForResource("myDB", ofType:"sqlite")
It keeps telling me that dbPath is nil.
Check the target membership of your SQLite database and it's done:

Resources