Permalink
Browse files

Changed license to Apache version 2 license

Added unique constraint for UIDs in the database
Code refactoring
  • Loading branch information...
codinguser committed Aug 7, 2012
1 parent a4a3486 commit 9015977cf7128320db98bcf702f24a60b457952f
Showing with 957 additions and 932 deletions.
  1. +6 −0 CHANGELOG.md
  2. +10 −18 GnucashMobile/AndroidManifest.xml
  3. +10 −18 GnucashMobile/res/layout/activity_accounts.xml
  4. +10 −18 GnucashMobile/res/layout/activity_transactions.xml
  5. +16 −0 GnucashMobile/res/layout/default_buttons.xml
  6. +10 −18 GnucashMobile/res/layout/dialog_bulk_move.xml
  7. +10 −18 GnucashMobile/res/layout/dialog_export_ofx.xml
  8. +10 −18 GnucashMobile/res/layout/dialog_new_account.xml
  9. +10 −18 GnucashMobile/res/layout/fragment_account_detail.xml
  10. +10 −18 GnucashMobile/res/layout/fragment_accounts_list.xml
  11. +16 −0 GnucashMobile/res/layout/fragment_new_transaction.xml
  12. +10 −18 GnucashMobile/res/layout/fragment_transactions_list.xml
  13. +10 −18 GnucashMobile/res/layout/list_item_account.xml
  14. +11 −18 GnucashMobile/res/layout/list_item_transaction.xml
  15. +10 −18 GnucashMobile/res/layout/widget_4x1.xml
  16. +16 −0 GnucashMobile/res/layout/widget_configuration.xml
  17. +12 −26 GnucashMobile/res/menu/account_actions.xml
  18. +11 −18 GnucashMobile/res/menu/account_context_menu.xml
  19. +10 −18 GnucashMobile/res/menu/global_actions.xml
  20. +11 −18 GnucashMobile/res/menu/new_transaction_actions.xml
  21. +11 −18 GnucashMobile/res/menu/transactions_context_menu.xml
  22. +11 −18 GnucashMobile/res/menu/transactions_list_actions.xml
  23. +10 −18 GnucashMobile/res/values-v14/dimens.xml
  24. +10 −18 GnucashMobile/res/values/colors.xml
  25. +10 −18 GnucashMobile/res/values/dimens.xml
  26. +10 −18 GnucashMobile/res/values/strings.xml
  27. +10 −18 GnucashMobile/res/values/styles.xml
  28. +16 −0 GnucashMobile/res/xml/fragment_about_preferences.xml
  29. +16 −0 GnucashMobile/res/xml/fragment_general_preferences.xml
  30. +15 −0 GnucashMobile/res/xml/preference_headers.xml
  31. +10 −18 GnucashMobile/res/xml/transaction_appwidget_info.xml
  32. +66 −36 GnucashMobile/src/org/gnucash/android/data/Account.java
  33. +11 −20 GnucashMobile/src/org/gnucash/android/data/Money.java
  34. +10 −18 GnucashMobile/src/org/gnucash/android/data/Transaction.java
  35. +10 −18 GnucashMobile/src/org/gnucash/android/db/AccountsDbAdapter.java
  36. +10 −18 GnucashMobile/src/org/gnucash/android/db/DatabaseAdapter.java
  37. +10 −18 GnucashMobile/src/org/gnucash/android/db/DatabaseCursorLoader.java
  38. +20 −25 GnucashMobile/src/org/gnucash/android/db/DatabaseHelper.java
  39. +10 −18 GnucashMobile/src/org/gnucash/android/db/TransactionsDbAdapter.java
  40. +10 −18 GnucashMobile/src/org/gnucash/android/receivers/AccountCreator.java
  41. +10 −19 GnucashMobile/src/org/gnucash/android/receivers/TransactionAppWidgetProvider.java
  42. +11 −20 GnucashMobile/src/org/gnucash/android/receivers/TransactionRecorder.java
  43. +10 −18 GnucashMobile/src/org/gnucash/android/ui/DatePickerDialogFragment.java
  44. +10 −19 GnucashMobile/src/org/gnucash/android/ui/TimePickerDialogFragment.java
  45. +11 −20 GnucashMobile/src/org/gnucash/android/ui/accounts/AccountsActivity.java
  46. +10 −18 GnucashMobile/src/org/gnucash/android/ui/accounts/AccountsListFragment.java
  47. +10 −18 GnucashMobile/src/org/gnucash/android/ui/accounts/ExportDialogFragment.java
  48. +11 −19 GnucashMobile/src/org/gnucash/android/ui/accounts/NewAccountDialogFragment.java
  49. +16 −0 GnucashMobile/src/org/gnucash/android/ui/settings/SettingsActivity.java
  50. +10 −18 GnucashMobile/src/org/gnucash/android/ui/transactions/BulkMoveDialogFragment.java
  51. +11 −20 GnucashMobile/src/org/gnucash/android/ui/transactions/NewTransactionFragment.java
  52. +16 −0 GnucashMobile/src/org/gnucash/android/ui/transactions/TransactionsActivity.java
  53. +10 −18 GnucashMobile/src/org/gnucash/android/ui/transactions/TransactionsListFragment.java
  54. +10 −18 GnucashMobile/src/org/gnucash/android/ui/widget/WidgetConfigurationActivity.java
  55. +10 −18 GnucashMobile/src/org/gnucash/android/util/OfxFormatter.java
  56. +16 −0 GnucashMobile/src/org/gnucash/android/util/OnAccountClickedListener.java
  57. +16 −0 GnucashMobile/src/org/gnucash/android/util/OnTransactionClickedListener.java
  58. +16 −24 GnucashMobileTest/src/org/gnucash/android/test/ui/AccountsActivityTest.java
  59. +10 −18 GnucashMobileTest/src/org/gnucash/android/test/ui/OfxExportTest.java
  60. +10 −18 GnucashMobileTest/src/org/gnucash/android/test/ui/TransactionsActivityTest.java
  61. +16 −0 GnucashMobileTest/src/org/gnucash/android/test/unit/MoneyTest.java
  62. +202 −0 LICENSE
@@ -0,0 +1,6 @@
Change Log
===============================================================================
Version 1.0.0 *(2012-xx-xx)*
----------------------------
Initial release.
@@ -1,26 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Written By: Ngewi Fet <ngewif@gmail.com>
Copyright (c) 2012 Ngewi Fet
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
This file is part of Gnucash for Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Gnucash for Android is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
http://www.apache.org/licenses/LICENSE-2.0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942
51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
Boston, MA 02110-1301, USA gnu@gnu.org
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
@@ -1,26 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Written By: Ngewi Fet <ngewif@gmail.com>
Copyright (c) 2012 Ngewi Fet
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
This file is part of Gnucash for Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Gnucash for Android is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
http://www.apache.org/licenses/LICENSE-2.0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942
51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
Boston, MA 02110-1301, USA gnu@gnu.org
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
@@ -1,26 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Written By: Ngewi Fet <ngewif@gmail.com>
Copyright (c) 2012 Ngewi Fet
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
This file is part of Gnucash for Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Gnucash for Android is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
http://www.apache.org/licenses/LICENSE-2.0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942
51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
Boston, MA 02110-1301, USA gnu@gnu.org
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -1,26 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Written By: Ngewi Fet <ngewif@gmail.com>
Copyright (c) 2012 Ngewi Fet
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
This file is part of Gnucash for Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Gnucash for Android is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
http://www.apache.org/licenses/LICENSE-2.0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942
51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
Boston, MA 02110-1301, USA gnu@gnu.org
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
@@ -1,26 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Written By: Ngewi Fet <ngewif@gmail.com>
Copyright (c) 2012 Ngewi Fet
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
This file is part of Gnucash for Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Gnucash for Android is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
http://www.apache.org/licenses/LICENSE-2.0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942
51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
Boston, MA 02110-1301, USA gnu@gnu.org
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
@@ -1,26 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Written By: Ngewi Fet <ngewif@gmail.com>
Copyright (c) 2012 Ngewi Fet
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
This file is part of Gnucash for Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Gnucash for Android is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
http://www.apache.org/licenses/LICENSE-2.0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942
51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
Boston, MA 02110-1301, USA gnu@gnu.org
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
@@ -1,26 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Written By: Ngewi Fet <ngewif@gmail.com>
Copyright (c) 2012 Ngewi Fet
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
This file is part of Gnucash for Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Gnucash for Android is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
http://www.apache.org/licenses/LICENSE-2.0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942
51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
Boston, MA 02110-1301, USA gnu@gnu.org
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
@@ -1,26 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Written By: Ngewi Fet <ngewif@gmail.com>
Copyright (c) 2012 Ngewi Fet
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
This file is part of Gnucash for Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Gnucash for Android is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
http://www.apache.org/licenses/LICENSE-2.0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942
51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
Boston, MA 02110-1301, USA gnu@gnu.org
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -1,26 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Written By: Ngewi Fet <ngewif@gmail.com>
Copyright (c) 2012 Ngewi Fet
Copyright (c) 2012 Ngewi Fet <ngewif@gmail.com>
This file is part of Gnucash for Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Gnucash for Android is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
http://www.apache.org/licenses/LICENSE-2.0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942
51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
Boston, MA 02110-1301, USA gnu@gnu.org
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Oops, something went wrong.

2 comments on commit 9015977

@Apteryks

This comment has been minimized.

Apteryks replied Sep 24, 2017

Hi! I'm curious as to what were the motivations to change the license from GPL to Apache?

Please sign in to comment.