Skip to content

Commit

Permalink
Release 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-abrar committed Aug 16, 2023
1 parent ad36ea7 commit 69ee5c4
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 1 deletion.
11 changes: 11 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog for android-activity

## 0.2

* Support firebase (needed for push notifications)
* Support GHC 8.10
* Flush cookies to storage on app close

## 0.1

* Turn regular haskell programs into android Activities
2 changes: 1 addition & 1 deletion android-activity.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: android-activity
version: 0.1
version: 0.2.0.0
synopsis: Turn regular Haskell programs into Android Activities
homepage: https://github.com/obsidiansystems/android-activity
license: BSD3
Expand Down
2 changes: 2 additions & 0 deletions reflex-platform/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
8 changes: 8 additions & 0 deletions reflex-platform/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"owner": "reflex-frp",
"repo": "reflex-platform",
"branch": "release/1.1.1.0",
"private": false,
"rev": "fbc805981580908fcd29f7332a8e38fc29556e1c",
"sha256": "08bg5apsi4i5fk6di3fjka3qs4l2dj0vll70ddcykw25js9c2ki0"
}
12 changes: 12 additions & 0 deletions reflex-platform/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json
9 changes: 9 additions & 0 deletions release.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
let rp = import ./reflex-platform {};
addJdk = pkg: rp.nixpkgs.haskell.lib.overrideCabal pkg (drv: {
librarySystemDepends = (drv.librarySystemDepends or []) ++ [rp.nixpkgs.jdk];
});

in
addJdk (rp.ghcAndroidAarch64.callCabal2nix "android-activity" (builtins.fetchGit ./.) {
log = null;
})

0 comments on commit 69ee5c4

Please sign in to comment.