-
-
Notifications
You must be signed in to change notification settings - Fork 302
Windows: After Build options for Android #529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
scottrules44
wants to merge
7
commits into
coronalabs:master
Choose a base branch
from
scottrules44:WindowLibs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b99ac66
First Build
scottrules44 6f8dc5e
Updates
scottrules44 5183d57
Final Version
scottrules44 9572455
Change CMD flag to close when done
scottrules44 bcb7852
Delete BuildAndroidDlg.cpp
Shchvova 59bc48a
Check if apk is available and switch adb to use Corona Sim installed adb
scottrules44 677d1de
Merge branch 'WindowLibs' of https://github.com/scottrules44/corona i…
scottrules44 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| ////////////////////////////////////////////////////////////////////////////// | ||
| // | ||
| // This file is part of the Corona game engine. | ||
| // For overview and more information on licensing please refer to README.md | ||
| // For overview and more information on licensing please refer to README.md | ||
| // Home page: https://github.com/coronalabs/corona | ||
| // Contact: [email protected] | ||
| // | ||
|
|
@@ -224,9 +224,10 @@ CCoronaProject::RegistryGet( CString sSection ) | |
|
|
||
| // Third argument is what this is a password for, not value of password | ||
| m_KeystorePassword.RegistryGet( sSection, REGISTRY_KEYSTOREPWD, GetKeystorePath() ); | ||
| m_AliasPassword.RegistryGet( sSection, REGISTRY_ALIASPWD, GetAlias() ); | ||
| m_AliasPassword.RegistryGet( sSection, REGISTRY_ALIASPWD, GetAlias() ); | ||
| stringBuffer = pApp->GetProfileString(sSection, REGISTRY_CREATE_LIVE_BUILD, REGISTRY_CREATE_LIVE_BUILD_DEFAULT); | ||
| m_CreateLiveBuild = _ttoi(stringBuffer) ? true : false; | ||
| m_sAfterBuild = pApp->GetProfileString( sSection, REGISTRY_AFTER_BUILD ); | ||
| #ifdef AUTO_INCLUDE_MONETIZATION_PLUGIN | ||
| stringBuffer = pApp->GetProfileString(sSection, REGISTRY_ENABLE_MONETIZATION, REGISTRY_ENABLE_MONETIZATION_DEFAULT); | ||
| m_EnableMonetization = _ttoi(stringBuffer) ? true : false; | ||
|
|
@@ -262,6 +263,8 @@ CCoronaProject::RegistryPut( CString sSection ) | |
| m_AliasPassword.RegistryPut(sSection, REGISTRY_ALIASPWD, GetAlias()); | ||
| stringBuffer.Format(_T("%d"), m_CreateLiveBuild); | ||
| pApp->WriteProfileString(sSection, REGISTRY_CREATE_LIVE_BUILD, stringBuffer); | ||
|
|
||
| pApp->WriteProfileString( sSection, REGISTRY_AFTER_BUILD, m_sAfterBuild ); | ||
| #ifdef AUTO_INCLUDE_MONETIZATION_PLUGIN | ||
| stringBuffer.Format(_T("%d"), m_EnableMonetization); | ||
| pApp->WriteProfileString(sSection, REGISTRY_ENABLE_MONETIZATION, stringBuffer); | ||
|
|
@@ -356,7 +359,7 @@ CCoronaProject::ValidatePackage( CString sPackage ) | |
| if( (nextPeriod == 0) // starting with period | ||
| || (nextPeriod == length - 1) // ending with period | ||
| || (nextPeriod == prevPeriod + 1 ) // two periods in a row | ||
| || ! allalphanum( sPackage, prevPeriod + 1, nextPeriod - 1) | ||
| || ! allalphanum( sPackage, prevPeriod + 1, nextPeriod - 1) | ||
| || isJavaReservedWord( sPackage, prevPeriod + 1, nextPeriod - 1) ) | ||
| { | ||
| bCorrect = false; | ||
|
|
@@ -396,7 +399,7 @@ CCoronaProject::allalphanum( CString string, int start, int end ) | |
| return true; | ||
| } | ||
|
|
||
| // isJavaReservedWord - return true if all the characters between start and end, inclusive, | ||
| // isJavaReservedWord - return true if all the characters between start and end, inclusive, | ||
| // form a Java reserved word. http://www.javacamp.org/javaI/reservedWords.html | ||
| // Note that case matters: "interface" is reserved, but "Interface" isn't. | ||
| bool | ||
|
|
@@ -566,6 +569,15 @@ void CCoronaProject::SetCreateLiveBuild(bool createLiveBuild) | |
| m_CreateLiveBuild = createLiveBuild; | ||
| } | ||
|
|
||
| CString CCoronaProject::GetAfterBuild() | ||
| { | ||
| return m_sAfterBuild; | ||
| } | ||
| void CCoronaProject::SetAfterBuild(CString afterBuild) | ||
| { | ||
| m_sAfterBuild = afterBuild; | ||
| } | ||
|
|
||
| #ifdef AUTO_INCLUDE_MONETIZATION_PLUGIN | ||
| bool CCoronaProject::GetEnableMonetization() | ||
| { | ||
|
|
@@ -681,7 +693,7 @@ CEncryptedKeeper::RegistryPut( CString sSection, CString sKey, CString sMatch ) | |
| ClearCurrent(); | ||
| } | ||
| // Re-save of same data, could be to different registry location | ||
| else if( m_aSavedData != NULL && m_nSavedData > 0 ) | ||
| else if( m_aSavedData != NULL && m_nSavedData > 0 ) | ||
| { | ||
| pApp->WriteProfileBinary( sSection, sKey, m_aSavedData, m_nSavedData ); | ||
| } | ||
|
|
@@ -716,7 +728,7 @@ CEncryptedKeeper::ClearSaved() | |
| } | ||
|
|
||
| // ClearAll - clear both current and saved data | ||
| void | ||
| void | ||
| CEncryptedKeeper::ClearAll() | ||
| { | ||
| ClearCurrent(); | ||
|
|
@@ -738,7 +750,7 @@ void CEncryptedKeeper::EncryptString( CString sSecret, BYTE **paBytes, UINT *pnB | |
| // byte character sets. | ||
| unencryptedData.cbData = (sSecret.GetLength() + 1) * sizeof( sSecret[0] ); | ||
| if (!CryptProtectData( | ||
| &unencryptedData, | ||
| &unencryptedData, | ||
| _T("Marker"), | ||
| NULL, | ||
| NULL, | ||
|
|
@@ -763,7 +775,7 @@ void CEncryptedKeeper::EncryptString( CString sSecret, BYTE **paBytes, UINT *pnB | |
| CString CEncryptedKeeper::DecryptString( BYTE *aBytes, UINT nBytes ) | ||
| { | ||
| DATA_BLOB encryptedData, unencryptedData; | ||
|
|
||
| encryptedData.pbData = aBytes; | ||
| encryptedData.cbData = nBytes; | ||
| LPWSTR dataDescription; // Receives the description saved with data | ||
|
|
@@ -784,7 +796,7 @@ CString CEncryptedKeeper::DecryptString( BYTE *aBytes, UINT nBytes ) | |
|
|
||
| // NOTE: Contains NULL terminator | ||
| CString sSecret( (LPCTSTR) unencryptedData.pbData, unencryptedData.cbData ); | ||
|
|
||
| // Cleanup | ||
| LocalFree(unencryptedData.pbData); | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| ////////////////////////////////////////////////////////////////////////////// | ||
| // | ||
| // This file is part of the Corona game engine. | ||
| // For overview and more information on licensing please refer to README.md | ||
| // For overview and more information on licensing please refer to README.md | ||
| // Home page: https://github.com/coronalabs/corona | ||
| // Contact: [email protected] | ||
| // | ||
|
|
@@ -45,6 +45,7 @@ | |
| #define REGISTRY_ALIAS_DEFAULT _T("") | ||
| #define REGISTRY_SAVEDIR_DEFAULT _T("") | ||
| #define REGISTRY_CREATE_LIVE_BUILD_DEFAULT _T("0") | ||
| #define REGISTRY_AFTER_BUILD _T("0") | ||
| #define REGISTRY_ENABLE_MONETIZATION_DEFAULT _T("1") | ||
|
|
||
| /////////////////////////////////////////////////////////////////////////////// | ||
|
|
@@ -66,7 +67,7 @@ class CEncryptedKeeper : public CObject | |
| void SetSave( bool bSave ) { m_bSaveToRegistry = bSave; } | ||
|
|
||
| void RegistryGet( CString sSection, CString sKey, CString sMatch ); | ||
| void RegistryPut( CString sSection, CString sKey, CString sMatch ); | ||
| void RegistryPut( CString sSection, CString sKey, CString sMatch ); | ||
|
|
||
| void ClearCurrent(); | ||
| void ClearSaved(); | ||
|
|
@@ -163,6 +164,8 @@ class CCoronaProject : | |
|
|
||
| bool GetCreateLiveBuild(); | ||
| void SetCreateLiveBuild(bool createLiveBuild); | ||
| CString GetAfterBuild(); | ||
| void SetAfterBuild(CString afterBuild); | ||
|
|
||
| #ifdef AUTO_INCLUDE_MONETIZATION_PLUGIN | ||
| bool GetEnableMonetization(); | ||
|
|
@@ -219,10 +222,11 @@ class CCoronaProject : | |
|
|
||
| bool m_CreateLiveBuild; | ||
|
|
||
| CString m_sAfterBuild; | ||
|
|
||
| #ifdef AUTO_INCLUDE_MONETIZATION_PLUGIN | ||
| bool m_EnableMonetization; | ||
| #endif | ||
|
|
||
| bool m_sCreateFBInstantArchive; | ||
| }; | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.