To get started with LunaSea development on any platform, you will need to ensure the following tools are installed:
To validate Flutter's installation, please ensure that flutter doctor -v
does not return any issues with your current installation.
LunaSea uses Node.js for installing Git Hooks for the repository and for helper scripts. While it is not necessary to install Node.js for development, it will ensure you follow the required commit message format and give access to scripts that can be helpful for development.
In order to create any builds for LunaSea, you must first create and attach a Development Certificate to the XCode project.
In the root of the project, enter the macos
folder and open Runner.xcworkspace
in XCode.
Select Runner
in the lefthand navigation pane
Under Targets
select Runner
Select the Signing & Capabilities
tab
Under Signing
select the dropdown for the team (Should currently be Unknown Name (<<My Team ID>>)
Add an account (your Apple ID) and select your name or if already added then simply select your name
The status should show Failed to register bundle identifier
because the bundle identifier needs to be unique for each profile
Enter a unique bundle identifier (this does not need to resemble the current bundle identifier, it can be anything you want, but should follow the format of <word>.<word>.<word>
, so for example I have used app.lunasea.testprofile
Once you enter a unique bundle identifier, hit "Try again" to fetch a new signing profile for this bundle identifier. You will see the Apple Development: <Your email>
if you successfully created a signing profile
And that's it! You are ready to create builds of LunaSea using your own signing profile.
If you are using a free developer certificate then the application will remain valid for 7 days on a device. A paid developer certificate allows the application to remain valid for 365 days on a device.
In order to create any builds for LunaSea, you must first create and attach a Development Certificate to the XCode project.
In the root of the project, enter the ios
folder and open Runner.xcworkspace
in XCode.
Select Runner
in the lefthand navigation pane
Under Targets
select Runner
Select the Signing & Capabilities
tab
Under Signing
select the dropdown for the team (Should currently be Unknown Name (<<My Team ID>>)
Add an account (your Apple ID) and select your name or if already added then simply select your name
The status should show Failed to register bundle identifier
because the bundle identifier needs to be unique for each profile
Enter a unique bundle identifier (this does not need to resemble the current bundle identifier, it can be anything you want, but should follow the format of <word>.<word>.<word>
, so for example I have used app.lunasea.testprofile
Once you enter a unique bundle identifier, hit "Try again" to fetch a new signing profile for this bundle identifier. You will see the Apple Development: <Your email>
if you successfully created a signing profile
And that's it! You are ready to create builds of LunaSea using your own signing profile.
If you are using a free developer certificate then the application will remain valid for 7 days on a device. A paid developer certificate allows the application to remain valid for 365 days on a device.
In order to create production builds for LunaSea, you must first create and sign the release using the .
Open a terminal window and run the following command to generate a new Android keystore:
You can optionally change the following:
-keystore ~/key.jks
: By default this will create the new keystore in the home directory of the running user as the file key.jks
but this can be changed to any location you like
-alias lunasea
: By default the keystore internal alias is set to lunasea
but you can use any alias you like
The generation will ask you for some basic information including a password. Please ensure you do not forget this password because you will need it in the next step.
In the root of the project, enter the android
folder and copy your previously generated *.jks
keystone into this folder, and name it key.jks
.
In the same folder, open key.properties.sample
. Fill in all of the fields with the following information:
storePassword
: Password from step 1
keyPassword
: Same password from step 1
keyAlias
: The chosen alias from step 1
storeFile
: Keep it as ../key.jks
Save the file as key.properties
inside of <project root>/android
.
And that's it! You are ready to create production releases of LunaSea using your own signing keystore.